[PATCH 7/8] CIFS: Delete an unnecessary variable initialisation in cifs_do_create()

From: SF Markus Elfring
Date: Sun Aug 20 2017 - 12:41:21 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 20 Aug 2017 17:20:36 +0200

The local variable "full_path" will be set to an appropriate pointer
a bit later. Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
fs/cifs/dir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
index 248aead1f3f4..69babcf4f653 100644
--- a/fs/cifs/dir.c
+++ b/fs/cifs/dir.c
@@ -227,7 +227,7 @@ cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned int xid,
int desired_access;
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
struct cifs_tcon *tcon = tlink_tcon(tlink);
- char *full_path = NULL;
+ char *full_path;
FILE_ALL_INFO *buf = NULL;
struct inode *newinode = NULL;
int disposition;
--
2.14.0