Commit afa8f016 authored by Namjae Jeon's avatar Namjae Jeon

ksmbd: initialize variables on the declaration

Initialize variables on the declaration.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent c30f4eb8
......@@ -355,14 +355,11 @@ static int check_lock_range(struct file *filp, loff_t start, loff_t end,
int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count,
loff_t *pos)
{
struct file *filp;
struct file *filp = fp->filp;
ssize_t nbytes = 0;
char *rbuf;
struct inode *inode;
char *rbuf = work->aux_payload_buf;
struct inode *inode = file_inode(filp);
rbuf = work->aux_payload_buf;
filp = fp->filp;
inode = file_inode(filp);
if (S_ISDIR(inode->i_mode))
return -EISDIR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment