[nss-drv] Use goto to reduce repeated code

Change-Id: Ia68d16df2c295023325d080bea6f818aae73ee6f
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
3 files changed