mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
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:
parent
c30f4eb84b
commit
afa8f016c5
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user