]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: return -ENOMEM instead of -1
authorVitaly Osipov <vitaly.osipov@gmail.com>
Tue, 27 May 2014 12:27:37 +0000 (22:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 18:55:29 +0000 (11:55 -0700)
commit1e33399bc7b5a36bd7f6c66ba20c3a5074ff1fff
treecbd056869edf2780ee75eb62151c62f6ffa0215c
parent1172fcfeae732eaec0985b8a2c438f5db013806a
staging: rtl8712: return -ENOMEM instead of -1

After the commit 725a38c replaced _malloc with kmalloc, smatch picked up a
couple of new warnings. This fixes the warning:

warn: returning -1 instead of -ENOMEM is sloppy

Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_ops_linux.c