From patchwork Mon May 2 10:47:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 8990951 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 98B629F39D for ; Mon, 2 May 2016 10:48:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2EF9201FA for ; Mon, 2 May 2016 10:48:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD12F200E1 for ; Mon, 2 May 2016 10:48:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753596AbcEBKsT (ORCPT ); Mon, 2 May 2016 06:48:19 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:34554 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753582AbcEBKsR (ORCPT ); Mon, 2 May 2016 06:48:17 -0400 Received: by mail-pa0-f66.google.com with SMTP id yl2so17627142pac.1 for ; Mon, 02 May 2016 03:48:17 -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=2vvhQuo0LD6omE7dY5Ttt0KwUmoFf7ZFGdz6PJIRyYY=; b=kK4N39+uo47YO4fY81ttoljIyMoL91gJgUHhguUsx+Qj/3S0RIsPmQX+3Cw9UsiGvL zumFXyVzM8H5Xl2ULMsY7zyO0n/ipBhXOmPhq94nhC2ahuYu3KOpcQddkXMxg3qvasWN 9T+FMSzxYaiY02J9yHj5hwgexvrnqLtlOhTsICKLvo5+FZaZ6FThxyHuCHQCmL/XsWSX X+rtJ2ucU64DahDIPubWoBPs3ZfrXEGrvp4cMpcJuNARGp26wIamqHgj7Gw1x9iaNgd8 bisHJG8VtmC8YYWAwhytZNbiJgptEqYsOCE+EcUHoyUzMQRkFvZy9Z0f09BuwGvdN31c TW0g== 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=2vvhQuo0LD6omE7dY5Ttt0KwUmoFf7ZFGdz6PJIRyYY=; b=ZI0tJXo189FzEZ5/7R0c41nn2+uuQRRovw3mz3t/LEteSvDwGGwfxzmFQobHNXZCoB 2aBa3+a5TYzRC0LvMB7HSGQkIJ4HMUZ2dGQoI+RaQ7c/CuIFukMJpc/PWBjXfoL9DFCZ dShFmNi12f1aQX2MTzJetGGpTPlDImi97ZkDazjEastk/ZzfvTmNOGoTfH9Fds1PqR4J Kgq95A+Q1h/hXBDiCEt0REMXOt41ZlZM18Z9Rg3eYRc3HmMabe9GNFRYN6QHbyyGBfwA 6nwwcPYmCz3fj+LCMYgh9k/lQosLk0Y62rz0WB6zuuzYrrS24czYo+zpdH+6UAJZ5oqM 8byQ== X-Gm-Message-State: AOPr4FXou4mdzKChuKZ+6GNaxkn/E7q85bVk5RkbMwvwxU3QqBtNMYEkhoCPlUBc9lPcMw== X-Received: by 10.66.167.40 with SMTP id zl8mr50955504pab.8.1462186097104; Mon, 02 May 2016 03:48:17 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id fn3sm44570688pab.20.2016.05.02.03.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 May 2016 03:48:16 -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: fix comparison style of if statement in handle_get_ip_address Date: Mon, 2 May 2016 19:47:52 +0900 Message-Id: <1462186075-8549-4-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 changes conditional comparison of if statement as if (ret) instead of using if (ret != 0) 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 1d48214..8a269fd 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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 (ret != 0) + if (ret) netdev_err(vif->ndev, "Failed to get IP address\n"); }