From patchwork Thu Mar 3 12:05:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8492261 X-Patchwork-Delegate: kvalo@adurom.com 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 26969C0553 for ; Thu, 3 Mar 2016 12:06:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44B712017D for ; Thu, 3 Mar 2016 12:06:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0EE5A202FF for ; Thu, 3 Mar 2016 12:06:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756338AbcCCMGa (ORCPT ); Thu, 3 Mar 2016 07:06:30 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34495 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756170AbcCCMG3 (ORCPT ); Thu, 3 Mar 2016 07:06:29 -0500 Received: by mail-pf0-f195.google.com with SMTP id 184so1213680pff.1 for ; Thu, 03 Mar 2016 04:06:28 -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=kcYQF6LfaMzBiqYH/14qoTTdLbuqZihXg7RSMWlLSCo=; b=cSK7TQOuNqtAYjd8LKntIpV0V7Or1duL96kCzFIYbn8VqllbZAVcLLR0R20qQy1HA+ Lbuf+/mrU61N8ZThEp0I8v+WUuAZvIa8IXhxQrZe0Yh0VChmNyEr8a3CNbXLzJZTGTRd 66gGbRD3ja+zxqmzPtGy0W1wryDNAHzz+5sYh1lTaUOxJQoO0p3JtNVdCIvCN+yy3teW SnJsX/7pFT/lw7bajU1ojTLcvJ7dfQbfcF5v5PuQ3wRS6PIkyJspp4IDoWIFQ4hAMpYi JvLVnx5vmUAGOiCRwet1CAShQyu1YGdX5z5eEOAYVorhhlQTAVPOi/Pfpdr40KbsfW7J w8Fg== 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=kcYQF6LfaMzBiqYH/14qoTTdLbuqZihXg7RSMWlLSCo=; b=mb3du3G6nQn2Qx/LfukLbxkZNgi0iBoz9Mol2Us3RN/X6BFc0Q/1w+pJQL3rnqsXnC JhYJ3/8pn07vY2uV1gmxsGx2Rld0uxJmRY93fRtOIIQJ73ftv4cT9g+HhcWb7NSEZqP/ fFbEFmg1bckOpAJtV+PD8ZbUPt9lVHKV+eooWG5VZd2yby/FLcqjdXNgHL+Zvu1myB4J bR7sjtOMWDIhz17nklZmqmxCamjwN0CDSQN3QlrXpciKxr0JLOjDKecswDFv0BNnzFbD GkaDztWItCfe8gefgPHnC+A4QvipNQDzkkAAEZqNy2yTP1EUSBjRO6PoOmpeQT9XNcwr BMbw== X-Gm-Message-State: AD7BkJJ5L45D4WSK0F6ZqadICrdIoMUbtyoRTxaD8FKBoH6Nnzvc/8CtB0TvTw4z1U29og== X-Received: by 10.98.13.86 with SMTP id v83mr3083227pfi.162.1457006788581; Thu, 03 Mar 2016 04:06:28 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id v9sm15845386pfi.50.2016.03.03.04.06.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 04:06:28 -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 5/6] staging: wilc1000: remove unnecessary comments Date: Thu, 3 Mar 2016 21:05:21 +0900 Message-Id: <1457006722-14400-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1457006722-14400-1-git-send-email-chaehyun.lim@gmail.com> References: <1457006722-14400-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 removes unnecessary comments because enum cfg_cmd_type shows each command type without it. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_wlan_cfg.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wlan_cfg.c b/drivers/staging/wilc1000/wilc_wlan_cfg.c index 9cf68b7..92f6d32 100644 --- a/drivers/staging/wilc1000/wilc_wlan_cfg.c +++ b/drivers/staging/wilc1000/wilc_wlan_cfg.c @@ -378,18 +378,18 @@ int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size) u8 type = (id >> 12) & 0xf; int ret = 0; - if (type == CFG_BYTE_CMD) { /* byte command */ + if (type == CFG_BYTE_CMD) { if (size >= 1) ret = wilc_wlan_cfg_set_byte(frame, offset, id, *buf); - } else if (type == CFG_HWORD_CMD) { /* half word command */ + } else if (type == CFG_HWORD_CMD) { if (size >= 2) ret = wilc_wlan_cfg_set_hword(frame, offset, id, *((u16 *)buf)); - } else if (type == CFG_WORD_CMD) { /* word command */ + } else if (type == CFG_WORD_CMD) { if (size >= 4) ret = wilc_wlan_cfg_set_word(frame, offset, id, *((u32 *)buf)); - } else if (type == CFG_STR_CMD) { /* string command */ + } else if (type == CFG_STR_CMD) { ret = wilc_wlan_cfg_set_str(frame, offset, id, buf, size); - } else if (type == CFG_BIN_CMD) { /* binary command */ + } else if (type == CFG_BIN_CMD) { ret = wilc_wlan_cfg_set_bin(frame, offset, id, buf, size); } @@ -422,7 +422,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } i = 0; - if (type == CFG_BYTE_CMD) { /* byte command */ + if (type == CFG_BYTE_CMD) { do { if (g_cfg_byte[i].id == WID_NIL) break; @@ -434,7 +434,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } i++; } while (1); - } else if (type == CFG_HWORD_CMD) { /* half word command */ + } else if (type == CFG_HWORD_CMD) { do { if (g_cfg_hword[i].id == WID_NIL) break; @@ -446,7 +446,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } i++; } while (1); - } else if (type == CFG_WORD_CMD) { /* word command */ + } else if (type == CFG_WORD_CMD) { do { if (g_cfg_word[i].id == WID_NIL) break; @@ -458,7 +458,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size) } i++; } while (1); - } else if (type == CFG_STR_CMD) { /* string command */ + } else if (type == CFG_STR_CMD) { do { if (g_cfg_str[i].id == WID_NIL) break;