From patchwork Mon Nov 30 23:40:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mario J. Rugiero" X-Patchwork-Id: 7731161 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 56549BEEE1 for ; Mon, 30 Nov 2015 23:40:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 804602065D for ; Mon, 30 Nov 2015 23:40:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1EF52064D for ; Mon, 30 Nov 2015 23:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755359AbbK3XkS (ORCPT ); Mon, 30 Nov 2015 18:40:18 -0500 Received: from mail-qg0-f65.google.com ([209.85.192.65]:35159 "EHLO mail-qg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755355AbbK3XkO (ORCPT ); Mon, 30 Nov 2015 18:40:14 -0500 Received: by qgea14 with SMTP id a14so15193453qge.2 for ; Mon, 30 Nov 2015 15:40:14 -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; bh=stA78m9TqQO+cw1BKcaN+rGXQMsGHVRD2KHIRGSAQog=; b=b9GXLCMeluPqC0wxmno82F0VUTzW5iv4yD8s3CN4OP0OzwId4JowLL921rEPEWc60n XJE+S9+wmOYKFqgv/o4DKQqB5iVOI7PjRc0++ddZ7Ri7vp5TUBvJxzslJfNc1vApXJu+ DC0sG76/wFbCVQh2d3RiaFZZpv/j1ZDMY8NsiYPbdlGzPc3PqbaCrzYZWEKJN2c0feVW dsleJ60AjEfek0HNpWe1HI/cZsmZLdp1rX+lu+l7WVtOaZTb+60RMFEf8vfjyS4JY5jg EVtHpDVvt7fWvzKsbD9ZUib/HeYEN4REU98wqNybIbX8b220fkXPoajjms/HSp01c2fe zr0A== X-Received: by 10.140.27.228 with SMTP id 91mr78978732qgx.78.1448926814095; Mon, 30 Nov 2015 15:40:14 -0800 (PST) Received: from localhost ([186.182.226.29]) by smtp.gmail.com with ESMTPSA id e184sm15874464qkb.40.2015.11.30.15.40.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Nov 2015 15:40:13 -0800 (PST) From: "Mario J. Rugiero" To: devel@driverdev.osuosl.org Cc: mrugiero@gmail.com, gregkh@linuxfoundation.org, linux-wireless@vger.kernel.org, johnny.kim@atmel.com, austin.shin@atmel.com, chris.park@atmel.com, tony.cho@atmel.com, glen.lee@atmel.com, leo.kim@atmel.com Subject: [PATCH] [sparse-cleanup] Fix incompatible type comparison in wilc1000/host_interface.c Date: Mon, 30 Nov 2015 20:40:06 -0300 Message-Id: <1448926806-2979-1-git-send-email-mrugiero@gmail.com> X-Mailer: git-send-email 2.6.2 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 Signed-off-by: Mario J. Rugiero --- 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 d5b7725..9ce1d22 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -2270,7 +2270,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv, *pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF); *pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF); - if (pstrSetBeaconParam->tail > 0) + if (pstrSetBeaconParam->tail != NULL) memcpy(pu8CurrByte, pstrSetBeaconParam->tail, pstrSetBeaconParam->tail_len); pu8CurrByte += pstrSetBeaconParam->tail_len;