staging: wlags49_h2: Remove bad debug message
authorDavid Kilroy <kilroyd@googlemail.com>
Sat, 1 Oct 2011 08:43:50 +0000 (09:43 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:41:07 +0000 (10:41 -0700)
The message is in the wrong place. We definitely don't want to
return at this point, as we may need to turn off encryption.

Reported-by: Henk de Groot <pe1dnn@amsat.org>
Signed-off-by: David Kiroy <kilroyd@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/wl_wext.c

index 764a3208afda681028194860a35a0f83b8432988..89563dadddcdf361c2790a0f9ecd741a88ffaab7 100644 (file)
@@ -1214,7 +1214,6 @@ static int wireless_set_encode(struct net_device *dev, struct iw_request_info *i
                                lp->EnableEncryption    = 1;
                        } else {
                                DBG_WARNING( DbgInfo, "Problem setting the current TxKey\n" );
-                               DBG_LEAVE( DbgInfo );
                                ret = -EINVAL;
                        }
                }