]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30f96469e7a2e92486841ad667d03e0c508c742f
treecb27e133e11fe0b758ebb63fd7568e1f603e377d
parent8310353944887c0a33eb0aae6f25cba5077e17b2
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