]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: The file argument for fsync() is never null
authorDan Carpenter <error27@gmail.com>
Sat, 29 May 2010 09:49:07 +0000 (09:49 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Jun 2010 19:57:40 +0000 (15:57 -0400)
commit53c60d9b6cee6b32b334d76879d63c94565a4e4d
tree9bd7ee1dd243b5513ebad74b2870950a6d427d3c
parent5dad92bbcffbbe412d40c15418b604ba88daecd2
Btrfs: The file argument for fsync() is never null

The "file" argument for fsync is never null so we can remove this check.

What drew my attention here is that fc2994d0bf0: "drop unused dentry
argument to ->fsync" introduced an unconditional dereference at the
start of the function and that generated a smatch warning.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c