ksmbd: initialize variables on the declaration

Initialize variables on the declaration.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Namjae Jeon 2021-06-18 10:18:34 +09:00
parent c30f4eb84b
commit afa8f016c5

View File

@ -355,14 +355,11 @@ out:
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;