diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic/qla3xxx.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qla3xxx.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index 6407d0d77e81..12d1f2470d5c 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c | |||
@@ -1920,7 +1920,6 @@ static void ql_process_mac_tx_intr(struct ql3_adapter *qdev, | |||
1920 | { | 1920 | { |
1921 | struct ql_tx_buf_cb *tx_cb; | 1921 | struct ql_tx_buf_cb *tx_cb; |
1922 | int i; | 1922 | int i; |
1923 | int retval = 0; | ||
1924 | 1923 | ||
1925 | if (mac_rsp->flags & OB_MAC_IOCB_RSP_S) { | 1924 | if (mac_rsp->flags & OB_MAC_IOCB_RSP_S) { |
1926 | netdev_warn(qdev->ndev, | 1925 | netdev_warn(qdev->ndev, |
@@ -1935,7 +1934,6 @@ static void ql_process_mac_tx_intr(struct ql3_adapter *qdev, | |||
1935 | "Frame too short to be legal, frame not sent\n"); | 1934 | "Frame too short to be legal, frame not sent\n"); |
1936 | 1935 | ||
1937 | qdev->ndev->stats.tx_errors++; | 1936 | qdev->ndev->stats.tx_errors++; |
1938 | retval = -EIO; | ||
1939 | goto frame_not_sent; | 1937 | goto frame_not_sent; |
1940 | } | 1938 | } |
1941 | 1939 | ||
@@ -1944,7 +1942,6 @@ static void ql_process_mac_tx_intr(struct ql3_adapter *qdev, | |||
1944 | mac_rsp->transaction_id); | 1942 | mac_rsp->transaction_id); |
1945 | 1943 | ||
1946 | qdev->ndev->stats.tx_errors++; | 1944 | qdev->ndev->stats.tx_errors++; |
1947 | retval = -EIO; | ||
1948 | goto invalid_seg_count; | 1945 | goto invalid_seg_count; |
1949 | } | 1946 | } |
1950 | 1947 | ||
@@ -3958,15 +3955,4 @@ static struct pci_driver ql3xxx_driver = { | |||
3958 | .remove = __devexit_p(ql3xxx_remove), | 3955 | .remove = __devexit_p(ql3xxx_remove), |
3959 | }; | 3956 | }; |
3960 | 3957 | ||
3961 | static int __init ql3xxx_init_module(void) | 3958 | module_pci_driver(ql3xxx_driver); |
3962 | { | ||
3963 | return pci_register_driver(&ql3xxx_driver); | ||
3964 | } | ||
3965 | |||
3966 | static void __exit ql3xxx_exit(void) | ||
3967 | { | ||
3968 | pci_unregister_driver(&ql3xxx_driver); | ||
3969 | } | ||
3970 | |||
3971 | module_init(ql3xxx_init_module); | ||
3972 | module_exit(ql3xxx_exit); | ||