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

Commit 8b2c3da1 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[media] gspca: remove needless check before usb_free_coherent()



usb_free_coherent() is safe with NULL addr and this check is
not required.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a3ad56d0
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -567,7 +567,6 @@ static void destroy_urbs(struct gspca_dev *gspca_dev)

		gspca_dev->urb[i] = NULL;
		usb_kill_urb(urb);
		if (urb->transfer_buffer != NULL)
		usb_free_coherent(gspca_dev->dev,
				  urb->transfer_buffer_length,
				  urb->transfer_buffer,