Skip to content
Snippets Groups Projects
Commit 4f50a7f3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Fix KW error for NULL pointer check"

parents 6d99ae9a f22a15db
Branches
Tags
No related merge requests found
......@@ -1068,12 +1068,16 @@ static void gbam2bam_connect_work(struct work_struct *w)
struct usb_gadget *gadget = NULL;
struct teth_bridge_connect_params connect_params;
struct teth_bridge_init_params teth_bridge_params;
struct bam_ch_info *d = &port->data_ch;
struct bam_ch_info *d;
u32 sps_params;
int ret;
unsigned long flags;
if (port)
if (!port) {
pr_err("%s: NULL port", __func__);
return;
}
d = &port->data_ch;
dev = port_to_rmnet(port->gr);
if (dev && dev->cdev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment