Skip to content

Commit

Permalink
Merge branch 'qed-static-checker'
Browse files Browse the repository at this point in the history
Sudarsana Reddy Kalluru says:

====================
qed*: Fix the static checker warnings.

The patch series addresses the static checker warnings introduced by the
earlier patches related to qed/qede coalesce configuration support.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jun 29, 2016
2 parents fb773e9 + d2890de commit c973f24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/qlogic/qed/qed.h
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ struct qed_dev {

u32 int_mode;
enum qed_coalescing_mode int_coalescing_mode;
u8 rx_coalesce_usecs;
u8 tx_coalesce_usecs;
u16 rx_coalesce_usecs;
u16 tx_coalesce_usecs;

/* Start Bar offset of first hwfn */
void __iomem *regview;
Expand Down
8 changes: 5 additions & 3 deletions drivers/net/ethernet/qlogic/qede/qede_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,13 @@ static int qede_get_coalesce(struct net_device *dev,
struct ethtool_coalesce *coal)
{
struct qede_dev *edev = netdev_priv(dev);
u16 rxc, txc;

memset(coal, 0, sizeof(struct ethtool_coalesce));
edev->ops->common->get_coalesce(edev->cdev,
(u16 *)&coal->rx_coalesce_usecs,
(u16 *)&coal->tx_coalesce_usecs);
edev->ops->common->get_coalesce(edev->cdev, &rxc, &txc);

coal->rx_coalesce_usecs = rxc;
coal->tx_coalesce_usecs = txc;

return 0;
}
Expand Down

0 comments on commit c973f24

Please sign in to comment.