From: gregkh@linuxfoundation.org (Greg Kroah-Hartman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] serial: mctrl-gpio: fix build warning
Date: Wed, 11 Mar 2015 14:01:05 +0100 [thread overview]
Message-ID: <20150311130105.GB16733@kroah.com> (raw)
In-Reply-To: <2661449.5Eht12RCUu@wuerfel>
On Wed, Mar 11, 2015 at 11:25:41AM +0100, Arnd Bergmann wrote:
> A recent fix to the error handling in this driver introduced a
> harmless warning:
>
> serial/serial_mctrl_gpio.c: In function 'mctrl_gpio_init':
> serial/serial_mctrl_gpio.c:110:4: warning: return makes pointer from integer without a cast
> serial/serial_mctrl_gpio.c:90:6: warning: unused variable 'err' [-Wunused-variable]
>
> This removes the unused variable and uses the ERR_CAST helper
> to return the error value as the correct type.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 1d267ea6539f2 ("serial: mctrl-gpio: simplify init routine")
Someone else sent me this before you did, sorry.
greg k-h
prev parent reply other threads:[~2015-03-11 13:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 10:25 [PATCH] serial: mctrl-gpio: fix build warning Arnd Bergmann
2015-03-11 13:01 ` Greg Kroah-Hartman [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=20150311130105.GB16733@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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