Commit 9080d11a authored by Colin Ian King's avatar Colin Ian King Committed by Fan Wu
Browse files

scripts: ipe: polgen: remove redundant close and error exit path



Currently if an fopen fails the error exit path is via code that
checks if fp is not null and closes the file, however, fp is null
so this check and close is redundant. Since the only use of the
err exit label is on the fopen check, remove it and replace the
code with a simple return of errno. Also remove variable rc since
it's no longer required.

Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarFan Wu <wufan@kernel.org>
parent adc21867
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment