Skip to content

Commit

Permalink
[PATCH] UDF: Fix issues reported by Coverity in namei.c
Browse files Browse the repository at this point in the history
This patch fixes an issue in fs/udf/namei.c reported by Coverity:

Error reported(1776)
CID: 1776
Checker: UNUSED_VALUE (help)
File: fs/udf/namei.c
Function: udf_lookup
Description: Pointer returned from "udf_find_entry" is never used

Patch description:
   remove unused variable  fi.

Signed-off-by: Jayachandran C. <c.jayachandran@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jayachandran C authored and Linus Torvalds committed Feb 3, 2006
1 parent 9960396 commit db9a369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/udf/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ static struct dentry *
udf_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode = NULL;
struct fileIdentDesc cfi, *fi;
struct fileIdentDesc cfi;
struct udf_fileident_bh fibh;

if (dentry->d_name.len > UDF_NAME_LEN-2)
Expand All @@ -318,7 +318,7 @@ udf_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
else
#endif /* UDF_RECOVERY */

if ((fi = udf_find_entry(dir, dentry, &fibh, &cfi)))
if (udf_find_entry(dir, dentry, &fibh, &cfi))
{
if (fibh.sbh != fibh.ebh)
udf_release_data(fibh.ebh);
Expand Down

0 comments on commit db9a369

Please sign in to comment.