Skip to content

Commit

Permalink
configfs: Fix Trivial Warning in fs/configfs/symlink.c
Browse files Browse the repository at this point in the history
I observed the following build warning with fs/configfs/symlink.c:

fs/configfs/symlink.c: In function 'configfs_symlink':
fs/configfs/symlink.c:138: warning: 'target_item' may be used uninitialized in this function

Here is a small fix for this.

Cc: Patrick Mochel <mochel@osdl.org>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Sachin P Sant <sachinp@linux.vnet.ibm.com>
Signed-Off-By: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
  • Loading branch information
Subrata Modak authored and Joel Becker committed Apr 21, 2009
1 parent a939b96 commit 3c48f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/configfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int configfs_symlink(struct inode *dir, struct dentry *dentry, const char *symna
struct path path;
struct configfs_dirent *sd;
struct config_item *parent_item;
struct config_item *target_item;
struct config_item *target_item = NULL;
struct config_item_type *type;

ret = -EPERM; /* What lack-of-symlink returns */
Expand Down

0 comments on commit 3c48f23

Please sign in to comment.