Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6f8a4da17ea2c8467f88a586ae1d6fcfe2c66222
Commit:     6f8a4da17ea2c8467f88a586ae1d6fcfe2c66222
Parent:     61af43c56bef2cfcb8f1d9aab4e766e0f7bdd893
Author:     Larry Finger <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 27 21:51:39 2007 +0100
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:05:10 2008 -0800

    rt2x00: Remove redundant code in rfkill setup
    
    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.
    
    Signed-off-by: Larry Finger <[EMAIL PROTECTED]>
    Signed-off-by: Ivo van Doorn <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/rt2x00/rt2x00rfkill.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00rfkill.c 
b/drivers/net/wireless/rt2x00/rt2x00rfkill.c
index bbbf51d..7439637 100644
--- a/drivers/net/wireless/rt2x00/rt2x00rfkill.c
+++ b/drivers/net/wireless/rt2x00/rt2x00rfkill.c
@@ -136,12 +136,6 @@ int rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev)
        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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to