From: Ivo van Doorn <ivdoorn@gmail.com>
To: rt2400-devel@lists.sourceforge.net
Cc: Larry Finger <Larry.Finger@lwfinger.net>, linux-wireless@vger.kernel.org
Subject: Re: [Rt2400-devel] [RFC/T] rt2x00: Remove redundant code in rfkill setup
Date: Tue, 27 Nov 2007 20:43:48 +0100 [thread overview]
Message-ID: <200711272043.49429.IvDoorn@gmail.com> (raw)
In-Reply-To: <474c4e19.tFKoUyFEw/5q8HAB%Larry.Finger@lwfinger.net>
On Tuesday 27 November 2007, Larry Finger wrote:
> In rt2x00rfkill.c, routine input_allocate_device() is called even though
> input_allocate_polled_device(), which was just called, includes a call to
> that routine. This patch, which has not been tested, removes the redundant code.
Either I was blind for not noticing that before, or the behavior has changed recently. ;)
Applied to rt2x00.git, I will push it to John in a few minutes along with some other patches.
Thanks.
Ivo
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
>
> Index: wireless-2.6/drivers/net/wireless/rt2x00/rt2x00rfkill.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/rt2x00/rt2x00rfkill.c
> +++ wireless-2.6/drivers/net/wireless/rt2x00/rt2x00rfkill.c
> @@ -141,12 +141,6 @@ int rt2x00rfkill_allocate(struct rt2x00_
> rt2x00dev->poll_dev->poll = rt2x00rfkill_poll;
> rt2x00dev->poll_dev->poll_interval = RFKILL_POLL_INTERVAL;
>
> - rt2x00dev->poll_dev->input = input_allocate_device();
> - if (!rt2x00dev->poll_dev->input) {
> - ERROR(rt2x00dev, "Failed to allocate input device.\n");
> - goto exit_free_polldev;
> - }
> -
> rt2x00dev->poll_dev->input->name = rt2x00dev->ops->name;
> rt2x00dev->poll_dev->input->phys = wiphy_name(rt2x00dev->hw->wiphy);
> rt2x00dev->poll_dev->input->id.bustype = BUS_HOST;
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Rt2400-devel mailing list
> Rt2400-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rt2400-devel
>
prev parent reply other threads:[~2007-11-27 18:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 17:04 [RFC/T] rt2x00: Remove redundant code in rfkill setup Larry Finger
2007-11-27 19:43 ` Ivo van Doorn [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=200711272043.49429.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=rt2400-devel@lists.sourceforge.net \
/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.