From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 44F7E1C27B5 for ; Mon, 30 Apr 2018 13:45:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 41F79855D1 for ; Mon, 30 Apr 2018 13:45:15 +0000 (UTC) Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s6KXWW_kLEIh for ; Mon, 30 Apr 2018 13:45:14 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 93FCA86676 for ; Mon, 30 Apr 2018 13:45:14 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t11so13306962wmt.0 for ; Mon, 30 Apr 2018 06:45:14 -0700 (PDT) From: Sergio Paracuellos Subject: [PATCH 43/47] staging: ks7010: use u16 instead of unsigned short in hostif_event_check Date: Mon, 30 Apr 2018 15:44:28 +0200 Message-Id: <1525095872-8613-44-git-send-email-sergio.paracuellos@gmail.com> In-Reply-To: <1525095872-8613-1-git-send-email-sergio.paracuellos@gmail.com> References: <1525095872-8613-1-git-send-email-sergio.paracuellos@gmail.com> List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" To: gregkh@linuxfoundation.org Cc: driverdev-devel@linuxdriverproject.org, wsa@the-dreams.de Local variable 'event' is declared as unsigned short in hostif_event_check function. Its value is got calling get_word which returns an 'u16' so change its type to u16 which is preferred. Signed-off-by: Sergio Paracuellos --- drivers/staging/ks7010/ks_hostif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index 3db5679..1a034d5 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -912,7 +912,7 @@ void hostif_mic_failure_confirm(struct ks_wlan_private *priv) static void hostif_event_check(struct ks_wlan_private *priv) { - unsigned short event; + u16 event; event = get_word(priv); switch (event) { -- 2.7.4 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel