From: Julia Lawall Date: Tue, 22 Sep 2009 11:45:16 +0000 (+0200) Subject: drivers/net/wireless: Use usb_endpoint_dir_out X-Git-Tag: v2.6.32-rc1~27^2~11^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e2fb2f2b5d3b2f491fccab0ead256e34447cc6;p=pandora-kernel.git drivers/net/wireless: Use usb_endpoint_dir_out Use the usb_endpoint_dir_out API function. Note that the use of USB_TYPE_MASK in the original code is incorrect; it results in a test that is always false. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ struct usb_endpoint_descriptor *endpoint; expression E; @@ - (endpoint->bEndpointAddress & E) == USB_DIR_OUT + usb_endpoint_dir_out(endpoint) // Signed-off-by: Julia Lawall Signed-off-by: John W. Linville --- Reading git-diff-tree failed