[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100919214227.GC12416@elf.ucw.cz>
Date: Sun, 19 Sep 2010 23:42:27 +0200
From: Pavel Machek <pavel@....cz>
To: Pekka Enberg <penberg@...nel.org>
Cc: gregkh@...e.de, linux-kernel@...r.kernel.org,
Lars Lindley <lindley@...ote.org>,
Ruslan Pisarev <ruslan@...sarev.org.ua>
Subject: Re: [PATCH 1/7] w35und: Kill dead HAL macros in wbhal_f.h
Hi!
> Fixes an uninitialized variable access in _rx_iq_calibration_loop_winbond():
>
> CC [M] drivers/staging/winbond/phy_calibration.o
> drivers/staging/winbond/phy_calibration.c: In function ???_rx_iq_calibration_loop_winbond???:
> drivers/staging/winbond/phy_calibration.c:1138: warning: ???val??? is used uninitialized in this function
>
Are you sure this is correct?
> @@ -1132,18 +1132,6 @@ u8 _rx_iq_calibration_loop_winbond(struct hw_data *phw_data, u16 factor, u32 fre
> PHY_DEBUG(("[CAL] -> [5]_rx_iq_calibration_loop()\n"));
> PHY_DEBUG(("[CAL] ** factor = %d\n", factor));
>
> -
> -/* RF Control Override */
> - hw_get_cxx_reg(phw_data, 0x80, &val);
> - val |= BIT(19);
> - hw_set_cxx_reg(phw_data, 0x80, val);
> -
We pass pointer to val somewhere, set a bit, write it back. Seems ok
to me...?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists