提交 15a818f4 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: adutux: drop redundant sanity check

Drop a redundant sanity check for a NULL parent usb device, which is
never true.
Signed-off-by: NJohan Hovold <johan@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 279daf4e
......@@ -662,11 +662,6 @@ static int adu_probe(struct usb_interface *interface,
int out_end_size;
int i;
if (udev == NULL) {
dev_err(&interface->dev, "udev is NULL.\n");
goto exit;
}
/* allocate memory for our device state and initialize it */
dev = kzalloc(sizeof(struct adu_device), GFP_KERNEL);
if (!dev) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册