From patchwork Mon May 30 02:53:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9140167 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 04F4660755 for ; Mon, 30 May 2016 02:53:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE3FE2793B for ; Mon, 30 May 2016 02:53:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E314A281FF; Mon, 30 May 2016 02:53:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B0672793B for ; Mon, 30 May 2016 02:53:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753690AbcE3Cxc (ORCPT ); Sun, 29 May 2016 22:53:32 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:36572 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbcE3Cxa (ORCPT ); Sun, 29 May 2016 22:53:30 -0400 Received: by mail-pa0-f65.google.com with SMTP id fg1so19887220pad.3; Sun, 29 May 2016 19:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pJewaueM6o7ZdGnar37ECragU0Ml6hAZ1Hfnf0nGWoI=; b=kPlpuoUeNsnwXGpXo47n6c3V8M7rDsYkr/uOnXQkGig7f174LiCfpXcuJIt9usdhdp 5BFCQnHg7ykBo5XPA2uudmA1S0OXVJ3nSQIO7QMnWLlF+alHQxibWwvmGSdSVg245KWe KHOkBac+3bVCqIyxOc3vO2U9IaBMkyMeOe7us8Lw8O/TUboworTC4AlC9ALEUEG8dZEJ ZnKfb9+q8QElOFezqdYqO7wFJelGGUzw5NkDVR+27/KPESniAtwDyCCuBx/PFQbjWHxt 2Z4SCkme9/hMnzMdLgsse24mgUyVvnHrzfxk6cn0EfoNe82g0OZFVFAFOO8Q/DJNOHHJ 8aGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pJewaueM6o7ZdGnar37ECragU0Ml6hAZ1Hfnf0nGWoI=; b=hixNPgM0FrbWeXmqzjLU562TXDKUZ8srIuZRRaX4X+W5lqfaHQZqbnpUyHivphYTzf vohHfolD8qCfgMwtCM4npTPRDz/AcmdqLJMtwyoCjO9EHeWkzJv5DQFrJ+c6vCTA243x cl+W3WAVnqqT6FHWoclCMLY3duxYsFEr4aFLwThAg4kfgsZQrWCtJ+TuZ/SNBFOmk2/P 7RNYxuIACQH2OBJNnqgMF2KXItD4CpMJ7lSLV9wxfaEaf/gYr1JKbioz4g5lK2MeEL3Z vgkxwVIrPVCZwuCuSlCxXAWR69OqTUEE61LAVBY6m6uz5srQ6eUaXwhWAJqh9IcDuHXk ThCw== X-Gm-Message-State: ALyK8tJGCjqi+sEJ4HNO0Lraf/NJI8+XMXmM1pZ2tnGBLi3fxxmvBP1UfYz+la30Dm5w7A== X-Received: by 10.67.1.233 with SMTP id bj9mr42383644pad.46.1464576810122; Sun, 29 May 2016 19:53:30 -0700 (PDT) Received: from google.com ([2620:0:1000:1301:9988:7148:7bd6:87cc]) by smtp.gmail.com with ESMTPSA id j3sm8977476pfk.94.2016.05.29.19.53.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2016 19:53:28 -0700 (PDT) Date: Sun, 29 May 2016 19:53:22 -0700 From: Kirtika Ruchandani To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ruchandani.tina@gmail.com, netdev@vger.kernel.org, Julian.Calaby@gmail.com Subject: [PATCH v2 07/10] nl80211: Avoid multiple assignments on same line Message-ID: <637c25b980379d1a98d7c57cc247d49ef295cbc5.1464576022.git.kirtika.ruchandani@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warning "multiple assignments should be avoided." Signed-off-by: Kirtika Ruchandani Reviewed-by: Julian Calaby --- net/wireless/nl80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.8.0.rc3.226.g39d4020 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ad7cdce..6f8e2a7 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -2603,7 +2603,8 @@ static int nl80211_set_interface(struct sk_buff *skb, struct genl_info *info) memset(¶ms, 0, sizeof(params)); - otype = ntype = dev->ieee80211_ptr->iftype; + otype = dev->ieee80211_ptr->iftype; + ntype = dev->ieee80211_ptr->iftype; if (info->attrs[NL80211_ATTR_IFTYPE]) { ntype = nla_get_u32(info->attrs[NL80211_ATTR_IFTYPE]);