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

Commit 15a818f4 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: adutux: drop redundant sanity check



Drop a redundant sanity check for a NULL parent usb device, which is
never true.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 279daf4e
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -662,11 +662,6 @@ static int adu_probe(struct usb_interface *interface,
	int out_end_size;
	int out_end_size;
	int i;
	int i;


	if (udev == NULL) {
		dev_err(&interface->dev, "udev is NULL.\n");
		goto exit;
	}

	/* allocate memory for our device state and initialize it */
	/* allocate memory for our device state and initialize it */
	dev = kzalloc(sizeof(struct adu_device), GFP_KERNEL);
	dev = kzalloc(sizeof(struct adu_device), GFP_KERNEL);
	if (!dev) {
	if (!dev) {