From patchwork Fri Feb 12 14:04:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8292041 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 0724EBEEE5 for ; Fri, 12 Feb 2016 14:05:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A671203EB for ; Fri, 12 Feb 2016 14:05:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFB5220397 for ; Fri, 12 Feb 2016 14:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752940AbcBLOFX (ORCPT ); Fri, 12 Feb 2016 09:05:23 -0500 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36400 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbcBLOFT (ORCPT ); Fri, 12 Feb 2016 09:05:19 -0500 Received: by mail-pa0-f66.google.com with SMTP id gc2so110590pab.3 for ; Fri, 12 Feb 2016 06:05:19 -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=aYnISnDZXWqqhqbH7/0Y/mPK5Q4PZQvjbahBAgYjbaY=; b=TSUls3J4QqQAePf9BiCtAfB6EwNQeJN454Y7j5hGnUUeUVuoR3yDex9CfBy/RU6lWh /Jh00Mvpx1LnGAS0je0oCrYtIMxRSuqgfMv7Xcg4qJGkuWt0tJZdl42h/Z/jurux4VnT F/Yo1MEECfKXhCWlTgxEMX01sfVW/Lbbnf8Tgd6sQTtRa3/kLcMIx6l5yLdCTOztktgE SC6Taj81ZLLf84PbAmE6t9hf7M5VJMwUjSmENI6V+FPTZKV1YRUz/jKnkYmbG3FmjgqQ bkbWpmIxT+a2NrcD8PhUhienLtrNNUXLwtacfVFp3AWwSGxIMuJ5Vyyp6SiDnhvVHgow 7UKA== 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=aYnISnDZXWqqhqbH7/0Y/mPK5Q4PZQvjbahBAgYjbaY=; b=P9pHtBx8bMCGDAw4GIEMXF9fsPPeBk/DfLweJ/iKQJ0mS0fGQxlIlFG6dDBeddd+yU ZihgTW/t2Z7Oa0K3NxuQxl7e33+MSsEuTXn28ZpESiQSa52AnLPoxy7OfeBFOSq1ecqu pUjxFsPL10UD9JiKFt6VpX6i57pW7tc8vsSr2AoAHSNg8NxMn5VMmV3YrOsesGEl/3pB sNcxAlkiRyqbtiN5EbhY4zZvuCHSKLXho1FJzdHLTrySALR+rD70xCgEIbta+NXyWCRp B0+I+njnIGq7pnoqv8NLsN5QI6L9bUX+hSku0ADSb37CtQ/cUsploxazmxlm1LvzGZ7Y yDww== X-Gm-Message-State: AG10YOQ/6UoaTfxhxBVeU54Iw0DmFduVRpS3t3CSIPnv+l9KqkF27CkJ2iJkzya5PZqhyQ== X-Received: by 10.66.160.7 with SMTP id xg7mr2395384pab.10.1455285919413; Fri, 12 Feb 2016 06:05:19 -0800 (PST) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id u64sm19814147pfa.86.2016.02.12.06.05.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Feb 2016 06:05:18 -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 10/11] staging: wilc1000: rename result in handle_set_channel Date: Fri, 12 Feb 2016 23:04:46 +0900 Message-Id: <1455285887-29946-10-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1455285887-29946-1-git-send-email-chaehyun.lim@gmail.com> References: <1455285887-29946-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.9 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 renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() function are used as result, others are used as ret. It will start to rename as ret in all handle_*() function to sync up with this variable name. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/host_interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 0f7a36c..10c5e4ef 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -302,7 +302,7 @@ static struct wilc_vif *wilc_get_vif_from_idx(struct wilc *wilc, int idx) static void handle_set_channel(struct wilc_vif *vif, struct channel_attr *hif_set_ch) { - int result = 0; + int ret = 0; struct wid wid; wid.id = (u16)WID_CURRENT_CHANNEL; @@ -310,10 +310,10 @@ static void handle_set_channel(struct wilc_vif *vif, wid.val = (char *)&hif_set_ch->set_ch; wid.size = sizeof(char); - result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, - wilc_get_vif_idx(vif)); + ret = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, + wilc_get_vif_idx(vif)); - if (result) + if (ret) PRINT_ER("Failed to set channel\n"); }