From patchwork Mon Nov 12 21:58:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Mikityanskiy X-Patchwork-Id: 1731261 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 00733DFE80 for ; Mon, 12 Nov 2012 21:59:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753849Ab2KLV67 (ORCPT ); Mon, 12 Nov 2012 16:58:59 -0500 Received: from mail-ea0-f174.google.com ([209.85.215.174]:55841 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753625Ab2KLV65 (ORCPT ); Mon, 12 Nov 2012 16:58:57 -0500 Received: by mail-ea0-f174.google.com with SMTP id o11so438714eaa.19 for ; Mon, 12 Nov 2012 13:58:56 -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=n6fyd/TP44i8zT8dsnwEyCyr2LWMPi5puWP8v1C08tU=; b=xLLGTBjI5JejXqfR3jZ/CF5EkgteVThcUWm2nrzIpGOufy3LkrY6JmmXz4ZFlBV5F4 ObNUJ/10ysMZNx2/CF83nlWCwwizUCD4XpAoqTeb6gVKC/dnC49vVPXsy3dSsJiui5uA QN4XVGNW+WrrNQ3JtmnvnV0rVL2N6rebGClOr+HVUEaBfrOkydXZz0OgbjCLXzX2pvhY iE5TughgHzm0R7zpQaumzs58+EkIwMJTyd3Vj/hVan7Pufvdp5JDeTQ5vUODDiUoL5L+ 3vZ6Ztjhm7l8XccVQqBKZx4K9Nn8IRC5oWQJsD1EyNdy1V+kZj1meIwi4OfuJRlydT40 rU6Q== Received: by 10.14.193.134 with SMTP id k6mr26169914een.15.1352757536920; Mon, 12 Nov 2012 13:58:56 -0800 (PST) Received: from laptop.olymp.linuxd.org (63-85-92-178.pool.ukrtel.net. [178.92.85.63]) by mx.google.com with ESMTPS id f3sm18449256eeo.13.2012.11.12.13.58.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 13:58:56 -0800 (PST) From: Maxim Mikityanskiy To: greg@kroah.com, linux-wireless@vger.kernel.org Cc: Maxim Mikityanskiy Subject: [PATCH 05/17] Simplified function GetSupportedWirelessMode8185() Date: Mon, 12 Nov 2012 23:58:19 +0200 Message-Id: <1352757511-26957-6-git-send-email-maxtram95@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352757511-26957-1-git-send-email-maxtram95@gmail.com> References: <1352757511-26957-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 Signed-off-by: Maxim Mikityanskiy --- r8185b_init.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/r8185b_init.c b/r8185b_init.c index 1ab8513..0b5c34b 100644 --- a/r8185b_init.c +++ b/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,