diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2018-01-15 14:41:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-16 20:40:00 +0100 |
commit | 78f5193dbcd3ed799c9fe187ddbfa67503e97ab8 (patch) | |
tree | 798742258de9d2e00f05cfb11c68d782c2a2939c /drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c | |
parent | net: aquantia: Eliminate AQ_DIMOF, replace with ARRAY_SIZE (diff) | |
download | linux-78f5193dbcd3ed799c9fe187ddbfa67503e97ab8.tar.xz linux-78f5193dbcd3ed799c9fe187ddbfa67503e97ab8.zip |
net: aquantia: Cleanup status flags accesses
Usage of aq_obj_s structure is noop, here we remove it
replacing access to flags filed directly.
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c b/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c index 5f13465995f6..27e250d61da7 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_hw_utils.c @@ -40,7 +40,7 @@ u32 aq_hw_read_reg(struct aq_hw_s *hw, u32 reg) u32 value = readl(hw->mmio + reg); if ((~0U) == value && (~0U) == readl(hw->mmio + hw->not_ff_addr)) - aq_utils_obj_set(&hw->header.flags, AQ_HW_FLAG_ERR_UNPLUG); + aq_utils_obj_set(&hw->flags, AQ_HW_FLAG_ERR_UNPLUG); return value; } @@ -54,11 +54,11 @@ int aq_hw_err_from_flags(struct aq_hw_s *hw) { int err = 0; - if (aq_utils_obj_test(&hw->header.flags, AQ_HW_FLAG_ERR_UNPLUG)) { + if (aq_utils_obj_test(&hw->flags, AQ_HW_FLAG_ERR_UNPLUG)) { err = -ENXIO; goto err_exit; } - if (aq_utils_obj_test(&hw->header.flags, AQ_HW_FLAG_ERR_HW)) { + if (aq_utils_obj_test(&hw->flags, AQ_HW_FLAG_ERR_HW)) { err = -EIO; goto err_exit; } |