From patchwork Mon Sep 7 15:36:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 7136571 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 B52309F1D5 for ; Mon, 7 Sep 2015 15:37:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F29FB20776 for ; Mon, 7 Sep 2015 15:37:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2535D20680 for ; Mon, 7 Sep 2015 15:37:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753824AbbIGPhE (ORCPT ); Mon, 7 Sep 2015 11:37:04 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36271 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753811AbbIGPg6 (ORCPT ); Mon, 7 Sep 2015 11:36:58 -0400 Received: by padhk3 with SMTP id hk3so14813378pad.3 for ; Mon, 07 Sep 2015 08:36:58 -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=LdS8yxGOp1iRc+xcxFdsJb30HXL23TAtt/sQFM2Bxo0=; b=OvWdE+uZItG+uC1CFpVVGl5eW8NJNCATNwGFnDXZlMxLsS6HlwSqelNcWeNEGxeHnQ pr7kKZdhVFHhWuE8mhKSjgOgzja2l5Bya3PFxcnxJEqygV2DbBHLRCBnYNnK2gzzp/qO Z9/rnt5E/8oLHIYGJ6OAy0X/bzY8cTJvKiSawXrBtVd2JB8ZYZJITPi0pBrzD60G5i9O 2haX9GxmqInOvvFMmLfs/UqdRCYNQNKfRIe754sSEJfSqm7xuZ9TA1QmYWMS0egdGpgt hjaXWziela6Vxhe1wRBK+75Ck2FDHqKB9geRlFUaKMuQ6Di+Ydk2Clm8kMYNn7z+EnIB +hOg== X-Received: by 10.68.69.40 with SMTP id b8mr34084844pbu.84.1441640218184; Mon, 07 Sep 2015 08:36:58 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id fj4sm207201pdb.23.2015.09.07.08.36.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 08:36:57 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, chris.park@atmel.com, devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, Chaehyun Lim Subject: [PATCH 5/5] staging: wilc1000: host_interface.c: fix build warning Date: Tue, 8 Sep 2015 00:36:39 +0900 Message-Id: <1441640199-1507-5-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 2.5.1 In-Reply-To: <1441640199-1507-1-git-send-email-chaehyun.lim@gmail.com> References: <1441640199-1507-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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 remove build build warning from Handle_SetOperationMode function. Host interface operation mode has one of 4 types from AP_MODE, STATION_MODE, GO_MODE and CLIENT_MODE. This values are range from 0x01 to 0x04 if mode is set correctly. If value of host interface operation is 0, it is not initialized any value because struct tstrHostIFmsg is initialized by zeroes. 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 e09508e..3be3b4c 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -754,7 +754,7 @@ static s32 Handle_SetOperationMode(tstrWILC_WFIDrv *drvHandler, tstrHostIfSetOpe get_id_from_handler(pstrWFIDrv)); - if ((pstrHostIfSetOperationMode->u32Mode) == (u32)NULL) + if (!pstrHostIfSetOperationMode->u32Mode) up(&hSemDeinitDrvHandle);