mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
cifsd: fix WARNING: Possible unnecessary 'out of memory' message
WARNING: Possible unnecessary 'out of memory' message 902: FILE: fs/cifsd/smb2pdu.c:569: + if (!work->response_buf) { + ksmbd_err("Failed to allocate %zu bytes buffer\n", sz); Fix a warning from checkpatch.pl. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
fad4161b5c
commit
63c454f839
1 changed files with 1 additions and 3 deletions
|
@ -565,10 +565,8 @@ int smb2_allocate_rsp_buf(struct ksmbd_work *work)
|
|||
else
|
||||
work->response_buf = kvmalloc(sz, GFP_KERNEL | __GFP_ZERO);
|
||||
|
||||
if (!work->response_buf) {
|
||||
ksmbd_err("Failed to allocate %zu bytes buffer\n", sz);
|
||||
if (!work->response_buf)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
work->response_sz = sz;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue