public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Rashika Kheria <rashika.kheria@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Matt Porter <mporter@kernel.crashing.org>,
	Alexandre Bounine <alexandre.bounine@idt.com>
Subject: Re: [PATCH 3/3] drivers: rapidio: Remove unused function rio_remove_sysfs_dev_files() in rio-sysfs.c
Date: Sat, 14 Dec 2013 12:34:25 -0800	[thread overview]
Message-ID: <20131214203425.GJ17601@leaf> (raw)
In-Reply-To: <63f565ae73de586db2277390618fa781535a55f9.1386926041.git.rashika.kheria@gmail.com>

On Sat, Dec 14, 2013 at 06:23:10PM +0530, Rashika Kheria wrote:
> This patch removes the function rio_remove_sysfs_dev_files() in
> rio-sysfs.c because it is unused.
> 
> Thus, it also eliminates the following warning in rio-sysfs.c:
> drivers/rapidio/rio-sysfs.c:295:6: warning: no previous prototype for ‘rio_remove_sysfs_dev_files’ [-Wmissing-prototypes]
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  drivers/rapidio/rio-sysfs.c |   16 ----------------
>  1 file changed, 16 deletions(-)
> 
> diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c
> index e0221c6..8929b9e 100644
> --- a/drivers/rapidio/rio-sysfs.c
> +++ b/drivers/rapidio/rio-sysfs.c
> @@ -286,22 +286,6 @@ int rio_create_sysfs_dev_files(struct rio_dev *rdev)
>  	return err;
>  }
>  
> -/**
> - * rio_remove_sysfs_dev_files - cleanup RIO specific sysfs files
> - * @rdev: device whose entries we should free
> - *
> - * Cleanup when @rdev is removed from sysfs.
> - */
> -void rio_remove_sysfs_dev_files(struct rio_dev *rdev)
> -{
> -	device_remove_bin_file(&rdev->dev, &rio_config_attr);
> -	if (rdev->pef & RIO_PEF_SWITCH) {
> -		device_remove_file(&rdev->dev, &dev_attr_routes);
> -		device_remove_file(&rdev->dev, &dev_attr_lnext);
> -		device_remove_file(&rdev->dev, &dev_attr_hopcount);
> -	}
> -}
> -
>  static ssize_t bus_scan_store(struct bus_type *bus, const char *buf,
>  				size_t count)
>  {
> -- 
> 1.7.9.5
> 

  reply	other threads:[~2013-12-14 20:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 12:46 [PATCH 1/3] drivers: rapidio: Include appropriate header file in rio-access.c Rashika Kheria
2013-12-14 12:50 ` [PATCH 2/3] drivers: rapidio: Include appropriate header file in rio-driver.c Rashika Kheria
2013-12-14 20:34   ` Josh Triplett
2013-12-18 18:22   ` Bounine, Alexandre
2013-12-14 12:53 ` [PATCH 3/3] drivers: rapidio: Remove unused function rio_remove_sysfs_dev_files() in rio-sysfs.c Rashika Kheria
2013-12-14 20:34   ` Josh Triplett [this message]
2013-12-18 16:38   ` Bounine, Alexandre
2013-12-14 20:33 ` [PATCH 1/3] drivers: rapidio: Include appropriate header file in rio-access.c Josh Triplett
2013-12-18 18:20 ` Bounine, Alexandre

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=20131214203425.GJ17601@leaf \
    --to=josh@joshtriplett.org \
    --cc=alexandre.bounine@idt.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mporter@kernel.crashing.org \
    --cc=rashika.kheria@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox