staging: wlan-ng: small cleanup in writeimage()
authorArchana <craechal@gmail.com>
Sat, 11 Mar 2023 12:12:52 +0000 (12:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2023 08:43:42 +0000 (09:43 +0100)
commit95a4919ab7328cb9442c0f8f1cfe5c3931f007f1
treea7bd980cdf09720a41992e8bc5936135ae73edc3
parent56d098b7fff39aa91701f8612b131c174976f910
staging: wlan-ng: small cleanup in writeimage()

It is cleaner to use "goto free_result;" as is being followed
in rest of the implementation of writeimage function, and
remove unnecessary kfree statements.

Signed-off-by: Archana <craechal@gmail.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/20230311121253.10225-1-craechal@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2fw.c