platform: msm_shared: avb: perform NULL check

new_str can be a NULL pointer. Need to perform a NULL check.
No need to perform NULL check for ret variable as else
condition is executed by checking the ret value.

Change-Id: I50efce86b5a141a36a93998d5d56baf8846fb841
Signed-off-by: Firoz Khan <firozk@codeaurora.org>
1 file changed