From patchwork Tue Nov 13 17:28:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Mikityanskiy X-Patchwork-Id: 1735751 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5A774DF280 for ; Tue, 13 Nov 2012 17:29:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755406Ab2KMR3G (ORCPT ); Tue, 13 Nov 2012 12:29:06 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:54986 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721Ab2KMR26 (ORCPT ); Tue, 13 Nov 2012 12:28:58 -0500 Received: by mail-ee0-f46.google.com with SMTP id b15so4133183eek.19 for ; Tue, 13 Nov 2012 09:28:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=QEBNUYvxnDlEPpA7kalNqW70nsCec/uChrFzzoJIgmU=; b=kX+RXrLteg6Q1LRdByHvpR/u+44S5Qy5MWAnsNshSzriP6WMOg8oyOWfugrIKiUzsf KCAtjaryJzALTSv6829FV9AJNzauOW9bPwDOrSRQDcAa3cPtUHPBUw6x0nARUlW4N96+ e5MLmFmWlpV2k1QS0Vrgnpcs103DWD/dn+3sY+A3ocM8HyHfytS+Plbq2LHfvGFGtt/P w2AoGrcItGG6Noueov3O/pLAnbfD8Xs0vyDHn+9bBySthaeAN/Vla6LwMzbICV+210L7 ISJVZL2F5OLnIBzkcYhCdQgAAmydvIAHXp7C38M8bnmfQdX+5k1mUK/V8KkNScclaQRb YDWQ== Received: by 10.14.179.1 with SMTP id g1mr77276859eem.14.1352827737751; Tue, 13 Nov 2012 09:28:57 -0800 (PST) Received: from laptop.olymp.linuxd.org (78-22-179-94.pool.ukrtel.net. [94.179.22.78]) by mx.google.com with ESMTPS id 42sm23845800eee.0.2012.11.13.09.28.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 13 Nov 2012 09:28:57 -0800 (PST) From: Maxim Mikityanskiy To: greg@kroah.com, Larry.Finger@lwfinger.net, linux-wireless@vger.kernel.org Cc: Maxim Mikityanskiy Subject: [PATCH 05/17] staging: rtl8187se: Simplified function GetSupportedWirelessMode8185() Date: Tue, 13 Nov 2012 19:28:11 +0200 Message-Id: <1352827703-4659-6-git-send-email-maxtram95@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352827703-4659-1-git-send-email-maxtram95@gmail.com> References: <1352827703-4659-1-git-send-email-maxtram95@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Removed unnecessary variable in GetSupportedWirelessMode8185() and shortened its code Signed-off-by: Maxim Mikityanskiy --- drivers/staging/rtl8187se/r8185b_init.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8187se/r8185b_init.c b/drivers/staging/rtl8187se/r8185b_init.c index 8fa42de..cf9bcd5 100644 --- a/drivers/staging/rtl8187se/r8185b_init.c +++ b/drivers/staging/rtl8187se/r8185b_init.c @@ -927,10 +927,7 @@ static void MacConfig_85BASIC(struct net_device *dev) u8 GetSupportedWirelessMode8185(struct net_device *dev) { - u8 btSupportedWirelessMode = 0; - - btSupportedWirelessMode = (WIRELESS_MODE_B | WIRELESS_MODE_G); - return btSupportedWirelessMode; + return WIRELESS_MODE_B | WIRELESS_MODE_G; } void ActUpdateChannelAccessSetting(struct net_device *dev,