Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: udc: fix free_irq() after request_irq() failed

My static checker detected the mistake. I fix this by changing "goto
err_irq" to "goto err_req". The label err_irq is not used now
so this patch also removes it.

Signed-off-by: Takeshi Yoshimura <yos@sslab.ics.keio.ac.jp>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Takeshi Yoshimura and committed by
Felipe Balbi
2184fe63 b4c21f0b

+1 -2
+1 -2
drivers/usb/gadget/udc/fotg210-udc.c
··· 1171 1171 udc_name, fotg210); 1172 1172 if (ret < 0) { 1173 1173 pr_err("request_irq error (%d)\n", ret); 1174 - goto err_irq; 1174 + goto err_req; 1175 1175 } 1176 1176 1177 1177 ret = usb_add_gadget_udc(&pdev->dev, &fotg210->gadget); ··· 1183 1183 return 0; 1184 1184 1185 1185 err_add_udc: 1186 - err_irq: 1187 1186 free_irq(ires->start, fotg210); 1188 1187 1189 1188 err_req: