Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58e61402 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman
Browse files

usb: misc: trancevibrator: don't print on ENOMEM



All kmalloc-based functions print enough information on failures.

Signed-off-by: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5c47fd61
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -95,8 +95,7 @@ static int tv_probe(struct usb_interface *interface,
	int retval;
	int retval;


	dev = kzalloc(sizeof(struct trancevibrator), GFP_KERNEL);
	dev = kzalloc(sizeof(struct trancevibrator), GFP_KERNEL);
	if (dev == NULL) {
	if (!dev) {
		dev_err(&interface->dev, "Out of memory\n");
		retval = -ENOMEM;
		retval = -ENOMEM;
		goto error;
		goto error;
	}
	}