projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9960396
)
[PATCH] UDF: Fix issues reported by Coverity in namei.c
author
Jayachandran C
<
[email protected]
>
Fri, 3 Feb 2006 11:04:50 +0000
(
03:04
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 3 Feb 2006 16:32:11 +0000
(08:32 -0800)
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. <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/udf/namei.c
patch
|
blob
|
history
diff --git
a/fs/udf/namei.c
b/fs/udf/namei.c
index ca732e79c48bb60af77c28dfe8f0a4f75b9f64b1..ab9a7629d23e82c094e8b7db9606a57af007e294 100644
(file)
--- a/
fs/udf/namei.c
+++ b/
fs/udf/namei.c
@@
-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)
@@
-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);