wireless: Remove unnecessary casts of usb_get_intfdata

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Joe Perches
2010-11-30 13:42:08 -08:00
committed by John W. Linville
parent e7797bf2c0
commit b276736319
5 changed files with 10 additions and 16 deletions

View File

@ -160,8 +160,7 @@ err_acc:
static void carl9170_usb_tx_data_complete(struct urb *urb)
{
struct ar9170 *ar = (struct ar9170 *)
usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0));
struct ar9170 *ar = usb_get_intfdata(usb_ifnum_to_if(urb->dev, 0));
if (WARN_ON_ONCE(!ar)) {
dev_kfree_skb_irq(urb->context);