aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-29 22:43:33 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-29 22:43:33 -0700
commit8cf14e38372d84ea09ba45fb60b61f6e36c18546 (patch)
tree56f777828ff7109808407b8a348c31ac74d5b558 /drivers/infiniband
parent9edb8bb68b5ea63061ba833831b00c229ac9fbd2 (diff)
downloadkernel_samsung_smdk4412-8cf14e38372d84ea09ba45fb60b61f6e36c18546.zip
kernel_samsung_smdk4412-8cf14e38372d84ea09ba45fb60b61f6e36c18546.tar.gz
kernel_samsung_smdk4412-8cf14e38372d84ea09ba45fb60b61f6e36c18546.tar.bz2
net: easy removals of HIPQUAD using %pI4 format
As a bonus, removes some unnecessary byteswapping. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
index 231ed70..fb7d243 100644
--- a/drivers/infiniband/hw/nes/nes.c
+++ b/drivers/infiniband/hw/nes/nes.c
@@ -138,14 +138,9 @@ static int nes_inetaddr_event(struct notifier_block *notifier,
struct nes_device *nesdev;
struct net_device *netdev;
struct nes_vnic *nesvnic;
- unsigned int addr;
- unsigned int mask;
-
- addr = ntohl(ifa->ifa_address);
- mask = ntohl(ifa->ifa_mask);
- nes_debug(NES_DBG_NETDEV, "nes_inetaddr_event: ip address " NIPQUAD_FMT
- ", netmask " NIPQUAD_FMT ".\n",
- HIPQUAD(addr), HIPQUAD(mask));
+
+ nes_debug(NES_DBG_NETDEV, "nes_inetaddr_event: ip address %pI4, netmask %pI4.\n",
+ &ifa->ifa_address, &ifa->ifa_mask);
list_for_each_entry(nesdev, &nes_dev_list, list) {
nes_debug(NES_DBG_NETDEV, "Nesdev list entry = 0x%p. (%s)\n",
nesdev, nesdev->netdev[0]->name);