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] staging: rts5208: Remove wrapper function
Date: Wed, 4 Nov 2015 12:10:17 -0800	[thread overview]
Message-ID: <20151104201017.GA15429@kroah.com> (raw)
In-Reply-To: <20151029085003.GA13195@amitoj-Inspiron-3542>

On Thu, Oct 29, 2015 at 02:20:03PM +0530, Amitoj Kaur Chawla wrote:
> Drop wrapper function that can be replaced by a single line of code.
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
>  drivers/staging/rts5208/rtsx_chip.c | 9 ++-------
>  drivers/staging/rts5208/rtsx_chip.h | 1 -
>  drivers/staging/rts5208/rtsx_scsi.c | 2 +-
>  3 files changed, 3 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/staging/rts5208/rtsx_chip.c b/drivers/staging/rts5208/rtsx_chip.c
> index c0ce659..ca9f021 100644
> --- a/drivers/staging/rts5208/rtsx_chip.c
> +++ b/drivers/staging/rts5208/rtsx_chip.c
> @@ -109,11 +109,6 @@ void rtsx_enable_bus_int(struct rtsx_chip *chip)
>  	dev_dbg(rtsx_dev(chip), "RTSX_BIER: 0x%08x\n", reg);
>  }
>  
> -void rtsx_disable_bus_int(struct rtsx_chip *chip)
> -{
> -	rtsx_writel(chip, RTSX_BIER, 0);
> -}

This is a "useful" function in that it does a specific thing, and makes
the code easier to read, so please don't remove it.

thanks,

greg k-h


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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29  8:50 [PATCH] staging: rts5208: Remove wrapper function Amitoj Kaur Chawla
2015-11-04 20:10 ` Greg KH [this message]

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=20151104201017.GA15429@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.