From patchwork Sun Jun 12 23:28:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 9171789 X-Patchwork-Delegate: kvalo@adurom.com 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 AECF060573 for ; Sun, 12 Jun 2016 23:28:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A14BC20855 for ; Sun, 12 Jun 2016 23:28:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9643121C9A; Sun, 12 Jun 2016 23:28:41 +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 3D17420855 for ; Sun, 12 Jun 2016 23:28:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753454AbcFLX2j (ORCPT ); Sun, 12 Jun 2016 19:28:39 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34751 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753090AbcFLX2i (ORCPT ); Sun, 12 Jun 2016 19:28:38 -0400 Received: by mail-pf0-f193.google.com with SMTP id 66so7385386pfy.1 for ; Sun, 12 Jun 2016 16:28:37 -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; bh=+Gjv4fXqorjAnQbgq7qQtjL7ZiSmc3BNSsJJxttL5+Q=; b=xqJABFxFgFGnQTAPUMIStSyX5qcQ+EoBiKvSElUOMT303lrwmmmSbDgS3bZVOa7BoY rw1UgL3IObeKjsorMej/eVX5pUy16mFqTDCJiE/dnoTdl10Tbnh9bikpWuY7mrGty40W p6n12MNuqzYwxNJ/JHeSgUSRH46WDpNhwZLDZXhwu+2YPfCAT+pPXuvcvVUpD/g/0xQd OKhn8etB0e/wcgQM2VSaiofAw2bQmlQg6/B08T+OEfufEiu5wTLEeG2Te8pxANh2WkXG WWFL3mU6NpPE2KbCsxeDU3NeasB7kx1G0p7hwA2hOLhplD11fHkZbWpP2PXgmVyhFIWk JopA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+Gjv4fXqorjAnQbgq7qQtjL7ZiSmc3BNSsJJxttL5+Q=; b=f0t1DpqS4yhKSh5/miNlnLQq2xod4T+A87NJN1cKgroc0X3quHxjoL6kxDRPqJ+cZY fD1lU83z4d5/9vUWJpcyK00YMHYjE9FA8CyO7tejoRV5xNQS4L3Tyd5Tz56cmjyahRsK DBIQ/dCpeD+cc34oeibVjp58wZNAzv/3/QNIzNf4SQEM9HEOJx60n7JLClqqvjV1E+J0 flO9wN3WMCt+oJqO3fZW2C+IwKkvRfvn/Rf6RtwbU+xElW3XmR7oOVJtPy7wOE978Vkq 9lYLod48hz1RS3J67RJf9bLuRI4n1c8+pFPAV0biFhFZnpmMe9GcnuqmmItfi0cvMwlx ainA== X-Gm-Message-State: ALyK8tKpLorqsuqw5pWsk3EbXcLHw3LgRLUt8vls3EwEzB7UPJygjnIxrs9XwWvLyxKdwg== X-Received: by 10.98.88.69 with SMTP id m66mr17839582pfb.68.1465774117323; Sun, 12 Jun 2016 16:28:37 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id d24sm32400154pfb.90.2016.06.12.16.28.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Jun 2016 16:28:36 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 5/6] staging: wilc1000: add bss_type to remove line over 80 characters Date: Mon, 13 Jun 2016 08:28:14 +0900 Message-Id: <20160612232815.12112-5-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160612232815.12112-1-chaehyun.lim@gmail.com> References: <20160612232815.12112-1-chaehyun.lim@gmail.com> 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 A local bss_type variable is added to remove checkpatch warning of line over 80 characters. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 96821f6..828efff 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -427,12 +427,14 @@ static void handle_cfg_param(struct wilc_vif *vif, mutex_lock(&hif_drv->cfg_values_lock); if (cfg_param_attr->flag & BSS_TYPE) { - if (cfg_param_attr->bss_type < 6) { + u8 bss_type = cfg_param_attr->bss_type; + + if (bss_type < 6) { wid_list[i].id = WID_BSS_TYPE; - wid_list[i].val = (s8 *)&cfg_param_attr->bss_type; + wid_list[i].val = (s8 *)&bss_type; wid_list[i].type = WID_CHAR; wid_list[i].size = sizeof(char); - hif_drv->cfg_values.bss_type = (u8)cfg_param_attr->bss_type; + hif_drv->cfg_values.bss_type = (u8)bss_type; } else { netdev_err(vif->ndev, "check value 6 over\n"); goto unlock;