From patchwork Mon May 2 10:47:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8990941 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 D6931BF29F for ; Mon, 2 May 2016 10:48:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0572E201FA for ; Mon, 2 May 2016 10:48:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 30F71200E1 for ; Mon, 2 May 2016 10:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567AbcEBKsQ (ORCPT ); Mon, 2 May 2016 06:48:16 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34955 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753456AbcEBKsP (ORCPT ); Mon, 2 May 2016 06:48:15 -0400 Received: by mail-pf0-f194.google.com with SMTP id r187so20694447pfr.2 for ; Mon, 02 May 2016 03:48:14 -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=QJcNhjiLCORzZ0Hsxl1lsJRfoVFQ6PUmaiFSpc6wN3U=; b=eVPGGonX2VTi43kfvCuI36VCvoM/xyS817J4Cf7yL+LjeMMpDGISfjQoMRVUonihlU +bi1FeV0SGcqXTLFY8h8dXfYsFlmZp24k10sv/WiP1t97rSPXVvMhUyrRnYHS3o81SyC RNrRRHp5q2bw0nGp4sUR76etYm9igvIxd7u1sehDpp6PKdGPgQS+P8cz2vTAvaJeETdH 3DsIDw02Mhxi8smV0CJlv9+N18lahd5i4RXTCblRaWG3u6s7BxmD/lQVt9Y47bMHF2oC VZ/4vxwPa1QhbH3t5inzR2WXm7tIaKfvQobhqckDzVKMwX+VRKo6CiZA5tA2qrOEnTBr Jzvg== 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=QJcNhjiLCORzZ0Hsxl1lsJRfoVFQ6PUmaiFSpc6wN3U=; b=kCt8Z3nZPdfpqcT85+r4yeTFaqRw3nTNCeqiN4C2plBj0pGQOQCZvbhVd/Wfl8ca4E NOp4kU8CkffNiZMOmFKuaHe/B8kex8d0UrqyNosTQ8rVUR3tZCGsb4O6OzXN/NmHXULK DvJ6K2rkE6B4JMFnkaG48xiMYVgVRIRjTDDnXziDGpP343jmLcf1jmJPl2X45iGuOHXK hC8b+lEovw4zcNSagDPkBO/mPI1E3/Xe+INms1cFJB2zKcnjibq/u9ndvg1dSIhr23bT dyJGMZxgWnwTZuBAkIxu7isV+3Va49wUCDLQhBPz1PNIIO9uFyo5zwuHiQ+DcJz9cUO8 yE5A== X-Gm-Message-State: AOPr4FUqRLPEZhpBRrVw0lWkKYLdIIGsazuVgjiGKm4wrP9aPbVTwV/Kwf9y7PBwDGqIUw== X-Received: by 10.98.1.197 with SMTP id 188mr50773987pfb.8.1462186094163; Mon, 02 May 2016 03:48:14 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id fn3sm44570688pab.20.2016.05.02.03.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 May 2016 03:48:13 -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 3/7] staging: wilc1000: rename result in handle_get_ip_address Date: Mon, 2 May 2016 19:47:51 +0900 Message-Id: <1462186075-8549-3-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.2 In-Reply-To: <1462186075-8549-1-git-send-email-chaehyun.lim@gmail.com> References: <1462186075-8549-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=-7.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 renames result to ret that is used to get return value from wilc_send_config_pkt. Some handle_*() functions are used as result, others are used as ret. It will be changed as ret in all handle_*() functions to match 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 acefd3b..1d48214 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -376,7 +376,7 @@ static void handle_set_ip_address(struct wilc_vif *vif, u8 *ip_addr, u8 idx) static void handle_get_ip_address(struct wilc_vif *vif, u8 idx) { - int result = 0; + int ret = 0; struct wid wid; wid.id = (u16)WID_IP_ADDRESS; @@ -384,8 +384,8 @@ static void handle_get_ip_address(struct wilc_vif *vif, u8 idx) wid.val = kmalloc(IP_ALEN, GFP_KERNEL); wid.size = IP_ALEN; - result = wilc_send_config_pkt(vif, GET_CFG, &wid, 1, - wilc_get_vif_idx(vif)); + ret = wilc_send_config_pkt(vif, GET_CFG, &wid, 1, + wilc_get_vif_idx(vif)); memcpy(get_ip[idx], wid.val, IP_ALEN); @@ -394,7 +394,7 @@ static void handle_get_ip_address(struct wilc_vif *vif, u8 idx) if (memcmp(get_ip[idx], set_ip[idx], IP_ALEN) != 0) wilc_setup_ipaddress(vif, set_ip[idx], idx); - if (result != 0) + if (ret != 0) netdev_err(vif->ndev, "Failed to get IP address\n"); }