]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rdma: amso1100: c2: Remove wrapper function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 4 Nov 2015 20:55:58 +0000 (02:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch removes the c2_print_macaddr() wrapper function which calls
the pr_debug standard kernel function only.

c2_print_macaddr() has been replaced by directly calling pr_debug().

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/amso1100/c2.c

index 35ac536b2d45de624407158ec4546dbf2c66c27f..af043f023c7d0d4ef03ef85376b125d0bb79ef27 100644 (file)
@@ -87,11 +87,6 @@ static struct pci_device_id c2_pci_table[] = {
 
 MODULE_DEVICE_TABLE(pci, c2_pci_table);
 
-static void c2_print_macaddr(struct net_device *netdev)
-{
-       pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name, netdev->dev_addr, netdev->irq);
-}
-
 static void c2_set_rxbufsize(struct c2_port *c2_port)
 {
        struct net_device *netdev = c2_port->netdev;
@@ -908,7 +903,8 @@ static struct net_device *c2_devinit(struct c2_dev *c2dev,
        /* Validate the MAC address */
        if (!is_valid_ether_addr(netdev->dev_addr)) {
                pr_debug("Invalid MAC Address\n");
-               c2_print_macaddr(netdev);
+               pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name,
+                        netdev->dev_addr, netdev->irq);
                free_netdev(netdev);
                return NULL;
        }
@@ -1142,7 +1138,8 @@ static int c2_probe(struct pci_dev *pcidev, const struct pci_device_id *ent)
        }
 
        /* Print out the MAC address */
-       c2_print_macaddr(netdev);
+       pr_debug("%s: MAC %pM, IRQ %u\n", netdev->name, netdev->dev_addr,
+                netdev->irq);
 
        ret = c2_rnic_init(c2dev);
        if (ret) {