diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 22:22:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-22 22:22:50 -0400 |
commit | e8650a08232e75274304b812ff04cfce9af9671c (patch) | |
tree | 0609c942e6ca99016e788ff2ee2bbed1bb9215a4 /drivers/net | |
parent | 3c2c4b73aa79e4a1b601710b59e092441175f4bb (diff) | |
parent | f70d4a95edc7da87f39cd8b603ba131df2c198ed (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial updates from Jiri Kosina:
"As usual, it's mostly typo fixes, redundant code elimination and some
documentation updates."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (57 commits)
edac, mips: don't change code that has been removed in edac/mips tree
xtensa: Change mail addresses of Hannes Weiner and Oskar Schirmer
lib: Change mail address of Oskar Schirmer
net: Change mail address of Oskar Schirmer
arm/m68k: Change mail address of Sebastian Hess
i2c: Change mail address of Oskar Schirmer
net: Fix tcp_build_and_update_options comment in struct tcp_sock
atomic64_32.h: fix parameter naming mismatch
Kconfig: replace "--- help ---" with "---help---"
c2port: fix bogus Kconfig "default no"
edac: Fix spelling errors.
qla1280: Remove redundant NULL check before release_firmware() call
remoteproc: remove redundant NULL check before release_firmware()
qla2xxx: Remove redundant NULL check before release_firmware() call.
aic94xx: Get rid of redundant NULL check before release_firmware() call
tehuti: delete redundant NULL check before release_firmware()
qlogic: get rid of a redundant test for NULL before call to release_firmware()
bna: remove redundant NULL test before release_firmware()
tg3: remove redundant NULL test before release_firmware() call
typhoon: get rid of redundant conditional before all to release_firmware()
...
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/sja1000/Kconfig | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/3com/typhoon.c | 3 | ||||
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 3 | ||||
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 3 | ||||
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | 3 | ||||
-rw-r--r-- | drivers/net/ethernet/realtek/r8169.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/s6gmac.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/Kconfig | 2 |
10 files changed, 12 insertions, 18 deletions
diff --git a/drivers/net/can/sja1000/Kconfig b/drivers/net/can/sja1000/Kconfig index b60d6c5f29a0..03df9a8f2bbf 100644 --- a/drivers/net/can/sja1000/Kconfig +++ b/drivers/net/can/sja1000/Kconfig | |||
@@ -75,7 +75,7 @@ config CAN_KVASER_PCI | |||
75 | tristate "Kvaser PCIcanx and Kvaser PCIcan PCI Cards" | 75 | tristate "Kvaser PCIcanx and Kvaser PCIcan PCI Cards" |
76 | depends on PCI | 76 | depends on PCI |
77 | ---help--- | 77 | ---help--- |
78 | This driver is for the the PCIcanx and PCIcan cards (1, 2 or | 78 | This driver is for the PCIcanx and PCIcan cards (1, 2 or |
79 | 4 channel) from Kvaser (http://www.kvaser.com). | 79 | 4 channel) from Kvaser (http://www.kvaser.com). |
80 | 80 | ||
81 | config CAN_PLX_PCI | 81 | config CAN_PLX_PCI |
diff --git a/drivers/net/ethernet/3com/typhoon.c b/drivers/net/ethernet/3com/typhoon.c index 1234a14b2b73..b15366635147 100644 --- a/drivers/net/ethernet/3com/typhoon.c +++ b/drivers/net/ethernet/3com/typhoon.c | |||
@@ -2549,8 +2549,7 @@ typhoon_init(void) | |||
2549 | static void __exit | 2549 | static void __exit |
2550 | typhoon_cleanup(void) | 2550 | typhoon_cleanup(void) |
2551 | { | 2551 | { |
2552 | if (typhoon_fw) | 2552 | release_firmware(typhoon_fw); |
2553 | release_firmware(typhoon_fw); | ||
2554 | pci_unregister_driver(&typhoon_driver); | 2553 | pci_unregister_driver(&typhoon_driver); |
2555 | } | 2554 | } |
2556 | 2555 | ||
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index d55df3290174..edeeb516807a 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c | |||
@@ -15883,8 +15883,7 @@ static void __devexit tg3_remove_one(struct pci_dev *pdev) | |||
15883 | if (dev) { | 15883 | if (dev) { |
15884 | struct tg3 *tp = netdev_priv(dev); | 15884 | struct tg3 *tp = netdev_priv(dev); |
15885 | 15885 | ||
15886 | if (tp->fw) | 15886 | release_firmware(tp->fw); |
15887 | release_firmware(tp->fw); | ||
15888 | 15887 | ||
15889 | tg3_reset_task_cancel(tp); | 15888 | tg3_reset_task_cancel(tp); |
15890 | 15889 | ||
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index 25c4e7f2a099..67cd2ed0306a 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c | |||
@@ -3520,9 +3520,7 @@ static void __exit | |||
3520 | bnad_module_exit(void) | 3520 | bnad_module_exit(void) |
3521 | { | 3521 | { |
3522 | pci_unregister_driver(&bnad_pci_driver); | 3522 | pci_unregister_driver(&bnad_pci_driver); |
3523 | 3523 | release_firmware(bfi_fw); | |
3524 | if (bfi_fw) | ||
3525 | release_firmware(bfi_fw); | ||
3526 | } | 3524 | } |
3527 | 3525 | ||
3528 | module_init(bnad_module_init); | 3526 | module_init(bnad_module_init); |
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c index 0d725dc91bcb..8694124ef77d 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | |||
@@ -1260,8 +1260,7 @@ next: | |||
1260 | void | 1260 | void |
1261 | netxen_release_firmware(struct netxen_adapter *adapter) | 1261 | netxen_release_firmware(struct netxen_adapter *adapter) |
1262 | { | 1262 | { |
1263 | if (adapter->fw) | 1263 | release_firmware(adapter->fw); |
1264 | release_firmware(adapter->fw); | ||
1265 | adapter->fw = NULL; | 1264 | adapter->fw = NULL; |
1266 | } | 1265 | } |
1267 | 1266 | ||
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c index d32cf0ddf1b9..799fd40ed03a 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c | |||
@@ -1321,8 +1321,7 @@ next: | |||
1321 | void | 1321 | void |
1322 | qlcnic_release_firmware(struct qlcnic_adapter *adapter) | 1322 | qlcnic_release_firmware(struct qlcnic_adapter *adapter) |
1323 | { | 1323 | { |
1324 | if (adapter->fw) | 1324 | release_firmware(adapter->fw); |
1325 | release_firmware(adapter->fw); | ||
1326 | adapter->fw = NULL; | 1325 | adapter->fw = NULL; |
1327 | } | 1326 | } |
1328 | 1327 | ||
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 4f74b9762c29..00b4f56a671c 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c | |||
@@ -6051,7 +6051,7 @@ static int rtl_open(struct net_device *dev) | |||
6051 | pm_runtime_get_sync(&pdev->dev); | 6051 | pm_runtime_get_sync(&pdev->dev); |
6052 | 6052 | ||
6053 | /* | 6053 | /* |
6054 | * Rx and Tx desscriptors needs 256 bytes alignment. | 6054 | * Rx and Tx descriptors needs 256 bytes alignment. |
6055 | * dma_alloc_coherent provides more. | 6055 | * dma_alloc_coherent provides more. |
6056 | */ | 6056 | */ |
6057 | tp->TxDescArray = dma_alloc_coherent(&pdev->dev, R8169_TX_RING_BYTES, | 6057 | tp->TxDescArray = dma_alloc_coherent(&pdev->dev, R8169_TX_RING_BYTES, |
diff --git a/drivers/net/ethernet/s6gmac.c b/drivers/net/ethernet/s6gmac.c index 8e9fda0c7aeb..2ed3ab4b3c2d 100644 --- a/drivers/net/ethernet/s6gmac.c +++ b/drivers/net/ethernet/s6gmac.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Ethernet driver for S6105 on chip network device | 2 | * Ethernet driver for S6105 on chip network device |
3 | * (c)2008 emlix GmbH http://www.emlix.com | 3 | * (c)2008 emlix GmbH http://www.emlix.com |
4 | * Authors: Oskar Schirmer <os@emlix.com> | 4 | * Authors: Oskar Schirmer <oskar@scara.com> |
5 | * Daniel Gloeckner <dg@emlix.com> | 5 | * Daniel Gloeckner <dg@emlix.com> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or | 7 | * This program is free software; you can redistribute it and/or |
@@ -1070,4 +1070,4 @@ module_exit(s6gmac_exit); | |||
1070 | 1070 | ||
1071 | MODULE_LICENSE("GPL"); | 1071 | MODULE_LICENSE("GPL"); |
1072 | MODULE_DESCRIPTION("S6105 on chip Ethernet driver"); | 1072 | MODULE_DESCRIPTION("S6105 on chip Ethernet driver"); |
1073 | MODULE_AUTHOR("Oskar Schirmer <os@emlix.com>"); | 1073 | MODULE_AUTHOR("Oskar Schirmer <oskar@scara.com>"); |
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index 8846516678c3..447a6932cab3 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c | |||
@@ -341,8 +341,8 @@ static int bdx_fw_load(struct bdx_priv *priv) | |||
341 | out: | 341 | out: |
342 | if (master) | 342 | if (master) |
343 | WRITE_REG(priv, regINIT_SEMAPHORE, 1); | 343 | WRITE_REG(priv, regINIT_SEMAPHORE, 1); |
344 | if (fw) | 344 | |
345 | release_firmware(fw); | 345 | release_firmware(fw); |
346 | 346 | ||
347 | if (rc) { | 347 | if (rc) { |
348 | netdev_err(priv->ndev, "firmware loading failed\n"); | 348 | netdev_err(priv->ndev, "firmware loading failed\n"); |
diff --git a/drivers/net/irda/Kconfig b/drivers/net/irda/Kconfig index 031d8e8ed1ad..595205406d73 100644 --- a/drivers/net/irda/Kconfig +++ b/drivers/net/irda/Kconfig | |||
@@ -316,7 +316,7 @@ config AU1000_FIR | |||
316 | tristate "Alchemy IrDA SIR/FIR" | 316 | tristate "Alchemy IrDA SIR/FIR" |
317 | depends on IRDA && MIPS_ALCHEMY | 317 | depends on IRDA && MIPS_ALCHEMY |
318 | help | 318 | help |
319 | Say Y/M here to build suppor the the IrDA peripheral on the | 319 | Say Y/M here to build support the IrDA peripheral on the |
320 | Alchemy Au1000 and Au1100 SoCs. | 320 | Alchemy Au1000 and Au1100 SoCs. |
321 | Say M to build a module; it will be called au1k_ir.ko | 321 | Say M to build a module; it will be called au1k_ir.ko |
322 | 322 | ||