All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v3] staging: rdma: amso1100: Drop wrapper function
Date: Wed, 4 Nov 2015 12:08:45 -0800	[thread overview]
Message-ID: <20151104200845.GA8713@kroah.com> (raw)
In-Reply-To: <20151102120728.GA3650@amitoj-Inspiron-3542>

On Mon, Nov 02, 2015 at 05:37:28PM +0530, Amitoj Kaur Chawla wrote:
> 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>
> ---
> Changes in v2:
>         -Corrected indentation
>         -Removed comment added in previous version
> Changes in v3:
>         -Corrected indentation
> 
>  drivers/staging/rdma/amso1100/c2.c | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/staging/rdma/amso1100/c2.c b/drivers/staging/rdma/amso1100/c2.c
> index 7f1e794..6688349 100644
> --- a/drivers/staging/rdma/amso1100/c2.c
> +++ b/drivers/staging/rdma/amso1100/c2.c
> @@ -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);

You added trailing whitespace, which is not allowed :(


  reply	other threads:[~2015-11-04 20:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02 12:07 [PATCH v3] staging: rdma: amso1100: Drop wrapper function Amitoj Kaur Chawla
2015-11-04 20:08 ` Greg KH [this message]
2015-11-04 20:17   ` [Outreachy kernel] " Amitoj Kaur Chawla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151104200845.GA8713@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=amitoj1606@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.