From patchwork Wed Apr 6 23:10:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8767091 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 9859D9F3D1 for ; Wed, 6 Apr 2016 23:11:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF24E201BB for ; Wed, 6 Apr 2016 23:11:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7C5A201B9 for ; Wed, 6 Apr 2016 23:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754521AbcDFXLQ (ORCPT ); Wed, 6 Apr 2016 19:11:16 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35935 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754474AbcDFXLP (ORCPT ); Wed, 6 Apr 2016 19:11:15 -0400 Received: by mail-pa0-f67.google.com with SMTP id k3so1538385pav.3 for ; Wed, 06 Apr 2016 16:11:15 -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=Z8AogCdU1CBR+23FUKucpYnYiuv9qDM73Yw2Siq9BWo=; b=da9fRXRcqCuIHKQ+9/VyK0vjn8YbwY53NJVs9pFcln50VG2vwLCboqVyRftilaPTWj p1Jzc08EFJ/ld5vE+zAUrlRQSy4nS0pKcDC3HwnneXeUxegxxmQYOqOAuGeiJDUn1YaX xFkTON/ARxXgfAbom9IeW9GCXTFAOFhu1CsyhlcPNFj1W35vPtTmwOSVkI+/WCGyIOXw JarmefWmNGayAq87lQ8RJAVcMOQ4svh7i19Z8hlnw1g4ubugRjRA3t8InL8vMMMuNTpt +osMjK7ZiCDxxYvUoaqY52EdaQ17YMCjsSXmldtlyX/cLEmmE/KXByXDJQf9cHknHYtD OSdw== 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=Z8AogCdU1CBR+23FUKucpYnYiuv9qDM73Yw2Siq9BWo=; b=b1IVktSfw9a7e9uBNdSlCiz2FXbj8Y4PVI2c3Vk6vgC/CTEyDCWB5VY379x08s5oSL RUctvg5Zp1A+ec0nuQoib3A3+Y0MORhccRpJbtBipacrfhTxyd9BsiwUvipGt0EgOLL+ ZE3rdPnKIFvaP2gDQzoZ+1mpv6DcO9tOJtC4eDcq07u82UpESA8MoCij8HeGGQ3txZRW /xq2qGl09DznSVxE+R+MjbKryXlmjm/SGDOywVrP3J1qY3yzT8jdpXrO5yYWd4ZnORdq QvmboQLUSNR4YYP/xIymAtxvwbRGGRud4S8f4uMbgCYXhKPZcT1TBwDgK/Y9BynLq6nE B4qw== X-Gm-Message-State: AD7BkJJnAtNmnMNobGoF7JM4tmjEMl71+YN7bcAkeOgYooVMQqL2QDeTKw+e48XJkcJJJg== X-Received: by 10.67.1.237 with SMTP id bj13mr75787744pad.130.1459984274898; Wed, 06 Apr 2016 16:11:14 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id g6sm7282818pfg.15.2016.04.06.16.11.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Apr 2016 16:11:14 -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 4/7] staging: wilc1000: rename result in handle_set_wfi_drv_handler Date: Thu, 7 Apr 2016 08:10:40 +0900 Message-Id: <1459984243-4689-4-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1459984243-4689-1-git-send-email-chaehyun.lim@gmail.com> References: <1459984243-4689-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_*() function are used as result, others are used as ret. It will be changed as ret in all handle_*() function 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 33735fd..4fd429e 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -310,7 +310,7 @@ static void handle_set_channel(struct wilc_vif *vif, static void handle_set_wfi_drv_handler(struct wilc_vif *vif, struct drv_handler *hif_drv_handler) { - int result = 0; + int ret = 0; struct wid wid; wid.id = (u16)WID_SET_DRV_HANDLER; @@ -318,13 +318,13 @@ static void handle_set_wfi_drv_handler(struct wilc_vif *vif, wid.val = (s8 *)hif_drv_handler; wid.size = sizeof(*hif_drv_handler); - result = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, - hif_drv_handler->handler); + ret = wilc_send_config_pkt(vif, SET_CFG, &wid, 1, + hif_drv_handler->handler); if (!hif_drv_handler->handler) complete(&hif_driver_comp); - if (result) + if (ret) netdev_err(vif->ndev, "Failed to set driver handler\n"); }