From patchwork Sat Apr 26 01:43:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gang ZHAO X-Patchwork-Id: 4067301 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDFC3C0ACC for ; Sat, 26 Apr 2014 01:44:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F16852037F for ; Sat, 26 Apr 2014 01:44:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F70720381 for ; Sat, 26 Apr 2014 01:44:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbaDZBoE (ORCPT ); Fri, 25 Apr 2014 21:44:04 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36882 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbaDZBoC (ORCPT ); Fri, 25 Apr 2014 21:44:02 -0400 Received: by mail-pa0-f49.google.com with SMTP id lj1so3699251pab.8 for ; Fri, 25 Apr 2014 18:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=fX/PCy336uiSi/Oxo+xgR54vyFYyaft15QXcM15gJpo=; b=jByrJzdGR834ucl+vdUkjwnrmJEUTCk4XmlbnOSi4rVUe/9605UN3KTt4LvDrB3Crl m9N+YDqmcNoZiM7gKuUE4YjSFzE71c5bms/tnWC2nz9lkTSymF2Ki3soJGHZsRAAWSUf E9Y3rmOEB4N3qD1/2glY/x6Js5bbbt/6RH/YcpizMHiU1dskojpgJklsLMxaD9IyrnJ6 I+70bGy68+TaaZFtd7Si17OZ08d3ZFDLKjCvEeRGwgWWEgiqaiyNzR1bgzq+TZ/jfihJ YxnTzeosX9NLpaihPdn0tmDJiauNONpG+CLsrPfjmt/YO+Su/eiYhvth2q4Zl85tyWbl Hc0g== X-Received: by 10.66.121.164 with SMTP id ll4mr11481470pab.129.1398476642596; Fri, 25 Apr 2014 18:44:02 -0700 (PDT) Received: from localhost.localdomain (p11.5bird.com. [128.199.246.148]) by mx.google.com with ESMTPSA id gj9sm18943537pbc.7.2014.04.25.18.44.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Apr 2014 18:44:02 -0700 (PDT) From: "Zhao, Gang" To: Cc: Johannes Berg Subject: [PATCH 2/2] mac80211: remove unnecessary assignment Date: Sat, 26 Apr 2014 09:43:41 +0800 Message-Id: <1472aa0c57e6d1820435c0b8f0a487173c4091d6.1398476191.git.gamerh2o@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <2c511530891bb91f1898a9ae09fed1628043192c.1398476191.git.gamerh2o@gmail.com> References: <1398440262.4152.21.camel@jlt4.sipsolutions.net> <2c511530891bb91f1898a9ae09fed1628043192c.1398476191.git.gamerh2o@gmail.com> In-Reply-To: <2c511530891bb91f1898a9ae09fed1628043192c.1398476191.git.gamerh2o@gmail.com> References: <2c511530891bb91f1898a9ae09fed1628043192c.1398476191.git.gamerh2o@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP P2P_DEVICE doesn't support ieee80211_bss_info_change_notify() for now, so it's not needed to set changed flags for P2P_DEVICE. Signed-off-by: Zhao, Gang --- net/mac80211/util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index cafbae7..ad05875 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1671,13 +1671,10 @@ int ieee80211_reconfig(struct ieee80211_local *local) } break; case NL80211_IFTYPE_WDS: - break; case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_MONITOR: - /* ignore virtual */ - break; case NL80211_IFTYPE_P2P_DEVICE: - changed = BSS_CHANGED_IDLE; + /* nothing to do */ break; case NL80211_IFTYPE_UNSPECIFIED: case NUM_NL80211_IFTYPES: