From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbdHCLfg (ORCPT ); Thu, 3 Aug 2017 07:35:36 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:22664 "EHLO alexa-out-lv-02.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751940AbdHCLfe (ORCPT ); Thu, 3 Aug 2017 07:35:34 -0400 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="2475064" X-IronPort-AV: E=McAfee;i="5900,7806,8610"; a="1421369837" X-MGA-submission: =?us-ascii?q?MDF36yNA34B2kugtxVRsUqSqFwuBKo1+GR0zQ2?= =?us-ascii?q?dpQ59dxrYB5DPEozCdFxfxonyyoYg9HgaKcSBoj1w8RhYEAwggZ6c+2/?= =?us-ascii?q?j9SGSo1FJMuzRLJlY9kkRgVIWojD/+yZjS/HteR0IR9123W/xbhyDmmG?= =?us-ascii?q?Oj?= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: ath10k: sdio: fix compile warning From: Kalle Valo In-Reply-To: <1499540921-18521-1-git-send-email-erik.stromdahl@gmail.com> References: <1499540921-18521-1-git-send-email-erik.stromdahl@gmail.com> To: Erik Stromdahl CC: , , , Erik Stromdahl User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-ID: <4a06a6fc064e43009a37fc7a4a1c52af@euamsexm01a.eu.qualcomm.com> Date: Thu, 3 Aug 2017 13:35:27 +0200 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To euamsexm01a.eu.qualcomm.com (10.251.127.40) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Erik Stromdahl wrote: > As suggested by Arnd Bergmann, replace > "while (time_before_...) {}" > with > "do {} while (time_before_...)" > > This fixes the following warnings detected by gcc 4.1.2: > > drivers/net/wireless/ath/ath10k/sdio.c: In function > ‘ath10k_sdio_mbox_rxmsg_pending_handler’: > drivers/net/wireless/ath/ath10k/sdio.c:676: warning: ‘ret’ may be used uninitialized in this function > > ... > > drivers/net/wireless/ath/ath10k/sdio.c: In function > ‘ath10k_sdio_irq_handler’: > drivers/net/wireless/ath/ath10k/sdio.c:1331: warning: ‘ret’ may be used uninitialized in this function > > Signed-off-by: Erik Stromdahl > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 433ef1b22678 ath10k: sdio: fix compile warning -- https://patchwork.kernel.org/patch/9831499/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches