summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/connection.c
diff options
context:
space:
mode:
authorJulia Lawall2011-05-13 17:48:41 +0200
committerGreg Kroah-Hartman2011-05-17 20:37:57 +0200
commit17fb76165f307f7be2cfbc93958356fe50fa4791 (patch)
tree9f7903607e16c01f670f1a20ac8b354663734fdb /drivers/staging/hv/connection.c
parentgma500: finish off the fault handler (diff)
downloadkernel-qcow2-linux-17fb76165f307f7be2cfbc93958356fe50fa4791.tar.gz
kernel-qcow2-linux-17fb76165f307f7be2cfbc93958356fe50fa4791.tar.xz
kernel-qcow2-linux-17fb76165f307f7be2cfbc93958356fe50fa4791.zip
drivers/staging/vt6656/main_usb.c: Delete unnecessary call to usb_kill_urb
Since in each case nothing has been done with the recently allocated urb, it is not necessary to kill it before freeing it. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r exists@ expression urb; statement S; position p1,p2; @@ urb = usb_alloc_urb@p1(...); ... when != urb if (urb == NULL) S ... when != urb usb_kill_urb@p2(urb); @other exists@ position r.p1,r.p2; @@ ... when != usb_alloc_urb@p1(...) usb_kill_urb@p2(...); @depends on !other exists@ expression urb; position r.p1,r.p2; @@ urb = usb_alloc_urb@p1(...); ... ( -usb_kill_urb@p2(urb); +usb_free_urb(urb); ... when != urb | -usb_kill_urb@p2(urb); ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/connection.c')
0 files changed, 0 insertions, 0 deletions