]> Git Repo - linux.git/commit
Btrfs: The file argument for fsync() is never null
authorDan Carpenter <[email protected]>
Sat, 29 May 2010 09:49:07 +0000 (09:49 +0000)
committerChris Mason <[email protected]>
Fri, 11 Jun 2010 19:57:40 +0000 (15:57 -0400)
commit6f902af400b2499c80865c62a06fbbd15cf804fd
tree9bd7ee1dd243b5513ebad74b2870950a6d427d3c
parent834e74759a473f8101a273e843d1edec2778801d
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 7ea8085910e: "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 <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/file.c
This page took 0.050635 seconds and 4 git commands to generate.