From patchwork Sun Jun 12 23:28:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 9171791 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 AA7F360573 for ; Sun, 12 Jun 2016 23:28:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CADA20855 for ; Sun, 12 Jun 2016 23:28:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 915B121C9A; Sun, 12 Jun 2016 23:28:43 +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 51BE120855 for ; Sun, 12 Jun 2016 23:28:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753482AbcFLX2l (ORCPT ); Sun, 12 Jun 2016 19:28:41 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36395 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753090AbcFLX2l (ORCPT ); Sun, 12 Jun 2016 19:28:41 -0400 Received: by mail-pf0-f193.google.com with SMTP id 62so9239239pfd.3 for ; Sun, 12 Jun 2016 16:28:40 -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=XJieYKJyXyc7NeIf2UqyZoPrzAolRtKA9xawi+E3ekc=; b=CGfGYVCQsGAk5Yo0tEHZ/aZcENuLBYFMpz65Xh5kDRbdG0+M3IPLjj6ZP+6lIQareo xzbQpdGiovtRQz0WwTQD+9NqSQJ+9+sAOvWNuwMMMeWVtTirqbs1l9c0p22ZRPrgcyM+ ndQbvHj/F2d3cnCh3KFxEdZjy+paxxgekIYHNcYDOmkTrSwEazKEweTQNYptRUAQ0bpF ToTuKBqHYUc13nCWjYwk539tG7RuyQeC4BA2K53IMlef6ML5yoROpIecTqi6U7D2zwud T4l7djQu3oXRLJ6PW2/wrkACk2mgu5jkQ0tBx4XKbH+tGHI2ivfAziT4jSl6vZFna3xS 9EOw== 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=XJieYKJyXyc7NeIf2UqyZoPrzAolRtKA9xawi+E3ekc=; b=EH0jqCy8/fZAn/MB0HJBlo61x0cnV7ve/iT/gj6bcHCit/3fYWGT29/Yf0fRC+MuxX DE5YXsGTfBbShkr8ZDrcP4F5DtIxWu1tHHOnddOVyxYjdy5xsbSiAxySY1eTC5eteBBY byuNi8ch7Mi/XFN9KkjEmYNSzRSo7/W3sGmmrteu2D34hatnqZkPjn9sa6OX7RaFkTXN chyDJWM0nZsv0TQWFXnoIj3xv5imNguyEgIr/RiScrMBpKQAo5Li4ewe0RHKFu+1tXqB aBGO0NLokE9NJGBWO28pV5UNwLh/uyIpiCaxiCPW13wEb36OTKZvwo8LwuGmLT62tQxZ CKng== X-Gm-Message-State: ALyK8tL2Fp418WjjRhlDiVRVAKMkgz4Gm3nrLeuVPsOdNA+8yY7jYGrcewoapFueZDwokQ== X-Received: by 10.98.70.144 with SMTP id o16mr14647242pfi.126.1465774120247; Sun, 12 Jun 2016 16:28:40 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id d24sm32400154pfb.90.2016.06.12.16.28.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Jun 2016 16:28:39 -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 6/6] staging: wilc1000: remove unnecesary type cast of bss_type Date: Mon, 13 Jun 2016 08:28:15 +0900 Message-Id: <20160612232815.12112-6-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 There is no need to use type cast of bss_type because hif_drv->cfg_values.bss_type is u8. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 828efff..5b2278b 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -434,7 +434,7 @@ static void handle_cfg_param(struct wilc_vif *vif, 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)bss_type; + hif_drv->cfg_values.bss_type = bss_type; } else { netdev_err(vif->ndev, "check value 6 over\n"); goto unlock;