]> git.baikalelectronics.ru Git - kernel.git/commit
radeon mkregtable: Add missing fclose() calls
authorJesper Juhl <jj@chaosbits.net>
Sat, 5 Feb 2011 19:51:53 +0000 (20:51 +0100)
committerDave Airlie <airlied@redhat.com>
Sun, 13 Feb 2011 23:22:54 +0000 (09:22 +1000)
commit87db9ba52046c44b0d2932e8324a90ebcb121316
tree87b892884a47a586b3eb6482fe9c136f527e116e
parentbf54adb87dbcc5b1ed4b566b1fea6698c73df351
radeon mkregtable: Add missing fclose() calls

drivers/gpu/drm/radeon/mkregtable.c:parser_auth() almost always remembers
to fclose(file) before returning, but it misses two spots.

This is not really important since the process will exit shortly after and
thus close the file for us, but being explicit prevents static analysis
tools from complaining about leaked memory and missing fclose() calls and
it also seems to be the prefered style of the existing code to explicitly
close the file.

So, here's a patch to add the two missing fclose() calls.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/mkregtable.c