cifsd: fix WARNING: Possible unnecessary 'out of memory' message
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 20 Apr 2021 05:24:28 +0000 (14:24 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Tue, 11 May 2021 01:46:42 +0000 (10:46 +0900)
commit63c454f8392832a770d9cfcf9baa1733959b71e3
treecb27e133e11fe0b758ebb63fd7568e1f603e377d
parentfad4161b5cd01a24202234976ebbb133f7adc0b5
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>
fs/cifsd/smb2pdu.c