From: "Michael Büsch" <m@bues.ch>
To: Maninder Singh <maninder1.s@samsung.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
pankaj.m@samsung.com
Subject: Re: [PATCH 1/1] ssb: remove unncessary out label
Date: Fri, 19 Jun 2015 17:13:11 +0200 [thread overview]
Message-ID: <20150619171311.7ed6dfd1@wiggum> (raw)
In-Reply-To: <1434704025-20448-1-git-send-email-maninder1.s@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]
On Fri, 19 Jun 2015 14:23:45 +0530
Maninder Singh <maninder1.s@samsung.com> wrote:
> This patch removes unnecessary label "out" and
> some restructring for using device_create_file directly.
>
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Reviewed-by: Rohit Thapliyal <r.thapliyal@samsung.com>
> ---
> drivers/ssb/pci.c | 8 +-------
> 1 files changed, 1 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
> index 0f28c08..d6ca4d3 100644
> --- a/drivers/ssb/pci.c
> +++ b/drivers/ssb/pci.c
> @@ -1173,17 +1173,11 @@ void ssb_pci_exit(struct ssb_bus *bus)
> int ssb_pci_init(struct ssb_bus *bus)
> {
> struct pci_dev *pdev;
> - int err;
>
> if (bus->bustype != SSB_BUSTYPE_PCI)
> return 0;
>
> pdev = bus->host_pci;
> mutex_init(&bus->sprom_mutex);
> - err = device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
> - if (err)
> - goto out;
> -
> -out:
> - return err;
> + return device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
> }
I don't really think this change adds any value, but if you insist on
it you get my acked-by.
--
Michael
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-06-19 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 8:53 [PATCH 1/1] ssb: remove unncessary out label Maninder Singh
2015-06-19 15:13 ` Michael Büsch [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-22 3:47 Maninder Singh
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=20150619171311.7ed6dfd1@wiggum \
--to=m@bues.ch \
--cc=linux-kernel@vger.kernel.org \
--cc=maninder1.s@samsung.com \
--cc=netdev@vger.kernel.org \
--cc=pankaj.m@samsung.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;
as well as URLs for NNTP newsgroup(s).