mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
[PATCH] UDF: Fix issues reported by Coverity in namei.c
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>
This commit is contained in:
parent
99603966f5
commit
db9a369ec1
1 changed files with 2 additions and 2 deletions
|
@ -296,7 +296,7 @@ static struct dentry *
|
||||||
udf_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
|
udf_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
|
||||||
{
|
{
|
||||||
struct inode *inode = NULL;
|
struct inode *inode = NULL;
|
||||||
struct fileIdentDesc cfi, *fi;
|
struct fileIdentDesc cfi;
|
||||||
struct udf_fileident_bh fibh;
|
struct udf_fileident_bh fibh;
|
||||||
|
|
||||||
if (dentry->d_name.len > UDF_NAME_LEN-2)
|
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
|
else
|
||||||
#endif /* UDF_RECOVERY */
|
#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)
|
if (fibh.sbh != fibh.ebh)
|
||||||
udf_release_data(fibh.ebh);
|
udf_release_data(fibh.ebh);
|
||||||
|
|
Loading…
Add table
Reference in a new issue