diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-28 14:19:51 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:31 (GMT) |
commit | 322f3f2fa73e42fe3163d14deabf12fd4cacc3b2 (patch) | |
tree | 9531c3a6466c64ed0bf60f0406dc37e09d152ffd /drivers/staging/rtl8187se/r8180_rtl8225z2.c | |
parent | e99b82d558b1fcc61a029d8e7b3f2a970371ca24 (diff) | |
download | linux-fsl-qoriq-322f3f2fa73e42fe3163d14deabf12fd4cacc3b2.tar.xz |
Staging: rtl8187se: cleanup r8180_rtl8225.c
* remove empty rtl8225_host_usb_init()
* remove commented out code
* remove useless comments
* beautify code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8187se/r8180_rtl8225z2.c')
-rw-r--r-- | drivers/staging/rtl8187se/r8180_rtl8225z2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8187se/r8180_rtl8225z2.c b/drivers/staging/rtl8187se/r8180_rtl8225z2.c index 8d18be8..54f2ea7 100644 --- a/drivers/staging/rtl8187se/r8180_rtl8225z2.c +++ b/drivers/staging/rtl8187se/r8180_rtl8225z2.c @@ -472,10 +472,7 @@ void rtl8225z2_rf_init(struct net_device *dev) // rtl8180_set_anaparam(dev, RTL8225_ANAPARAM_ON); - - if(priv->card_type == USB) - rtl8225_host_usb_init(dev); - else + if (priv->card_type != USB) rtl8225_host_pci_init(dev); write_nic_dword(dev, RF_TIMING, 0x000a8008); |