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)
commit735e33fa32d56e58dccb8406281efb2fff419f23
treecbd056869edf2780ee75eb62151c62f6ffa0215c
parentefc273ce344eb6984d16964201617f4720beb2dd
staging: rtl8712: return -ENOMEM instead of -1

After the commit 91d435f 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