From patchwork Tue Feb 23 06:37:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8387711 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BE9FB9F52D for ; Tue, 23 Feb 2016 06:38:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E03FB2052A for ; Tue, 23 Feb 2016 06:38:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F75F205E9 for ; Tue, 23 Feb 2016 06:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932437AbcBWGiT (ORCPT ); Tue, 23 Feb 2016 01:38:19 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33009 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757093AbcBWGiS (ORCPT ); Tue, 23 Feb 2016 01:38:18 -0500 Received: by mail-pf0-f170.google.com with SMTP id q63so106715553pfb.0 for ; Mon, 22 Feb 2016 22:38:18 -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:in-reply-to:references; bh=Hzdij27nsBSwJg7cZWMrwHlTAzpwx35R7Ji37FghdYY=; b=jVgcB5EQzoIBFYnQdbnYH1DUQkXb9yorbNUeAtiruXb4Vm/2GHgzVJgc4E8YcjRfpU Z9V4x+tpjU4E2VUPrvfULpIQ8RW4dIVHC6bAQqP/jUg8X92Vpu2ns0D+zZsrsO2RTx/+ xY7QDXbrngemr55FCG0dMXKnrpvDJpDYQb3FZUbzaVrAO6OjNcVKOH2HWMrKdaHOSEgY WeHiqvZsqKMVWvNs+Q2TZrV2xHNe/a1P3L1ibhLTGzy7MQTdTVvpCH1gf1EukYwVvF/4 9OQlQ8fU/1EoGxHSH1ULmDKuYVtQm8g3twZ5w+0O8W7HVH+pi3eaH32X/rTUGxkaTtw4 B4Lg== 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=Hzdij27nsBSwJg7cZWMrwHlTAzpwx35R7Ji37FghdYY=; b=HAjKc7B4mAVJdjn+U82HB5EtuJeNQOIXv+y/t7WXxV7KIP0LnyaAOVP6jriQI3hcVB MB0LfV4QtyXGUZjdn42B6EGqW9kiASW1tXZodJwJjQqS5rD6alKwA5rjcDxBwuok7aGX TAUff8DsFon1V1hxaTfqwzc0qtw7b9B6IkqrkeEIRDSx4eROT6ZApRKis2w96zk40gJy l9nzWGJVhkw6rjh6nEoV2Za0XQ57YlNX/BJEGhSyRjeYe6YIWtIZzGMK8tRADed77yLn k/OzDuxafamat38PRgkKDODXV/ai3QD9/FGRXHFUd6QD5mUWAZsP86fnfbNZlqs/kAD5 ZaRA== X-Gm-Message-State: AG10YOQ16/6S/l53oTYaB9dcriGJakApmZCHOS5Wm6TSy/dM3hmTw0WsHIISDPCjESin6Q== X-Received: by 10.98.42.207 with SMTP id q198mr44472725pfq.103.1456209498180; Mon, 22 Feb 2016 22:38:18 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id r68sm41187788pfb.51.2016.02.22.22.38.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 22:38:17 -0800 (PST) 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 3/7] staging: wilc1000: handle_cfg_param: change data type of wid_cnt Date: Tue, 23 Feb 2016 15:37:59 +0900 Message-Id: <1456209483-20345-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456209483-20345-1-git-send-email-chaehyun.lim@gmail.com> References: <1456209483-20345-1-git-send-email-chaehyun.lim@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=-6.8 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 This patch changes data type of wid_cnt from u8 to int. This variable uses array index of struct wid_list so that it is better to use int type. 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 c97df27..382f946 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -473,7 +473,7 @@ static s32 handle_cfg_param(struct wilc_vif *vif, s32 result = 0; struct wid wid_list[32]; struct host_if_drv *hif_drv = vif->hif_drv; - u8 wid_cnt = 0; + int wid_cnt = 0; down(&hif_drv->sem_cfg_values);