]> Git Repo - linux.git/commit
scripts: ipe: polgen: remove redundant close and error exit path
authorColin Ian King <[email protected]>
Thu, 31 Oct 2024 15:58:57 +0000 (15:58 +0000)
committerFan Wu <[email protected]>
Tue, 19 Nov 2024 21:57:03 +0000 (13:57 -0800)
commit9080d11a6c5c1fbf27127afdef84d8dcd65b91ff
treeeacbf95c98ba8ce212d219a4dcd29889e0fa9061
parentadc218676eef25575469234709c2d87185ca223a
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: Colin Ian King <[email protected]>
Signed-off-by: Fan Wu <[email protected]>
scripts/ipe/polgen/polgen.c
This page took 0.048967 seconds and 4 git commands to generate.