forked from Minki/linux
usb: misc: trancevibrator: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5c47fd6166
commit
58e61402c7
@ -95,8 +95,7 @@ static int tv_probe(struct usb_interface *interface,
|
||||
int retval;
|
||||
|
||||
dev = kzalloc(sizeof(struct trancevibrator), GFP_KERNEL);
|
||||
if (dev == NULL) {
|
||||
dev_err(&interface->dev, "Out of memory\n");
|
||||
if (!dev) {
|
||||
retval = -ENOMEM;
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user