]> git.baikalelectronics.ru Git - kernel.git/commit
fat: delete an unnecessary check before brelse()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 25 Sep 2019 23:47:24 +0000 (16:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Sep 2019 00:51:40 +0000 (17:51 -0700)
commitdaa9ba97fe57618e432054540f6918c2998dcb31
tree0454a095f5c5ee15c2c55773b7bb8debab51b0b9
parent9101ec81bab8d9b09a6a33b4f89a69c9828371db
fat: delete an unnecessary check before brelse()

brelse() tests whether its argument is NULL and then returns immediately.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Link: http://lkml.kernel.org/r/cfff3b81-fb5d-af26-7b5e-724266509045@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/dir.c