netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check
@ 2006-01-25  0:44 Alexey Dobriyan
  2006-01-25  4:34 ` Zhu Yi
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-01-25  0:44 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, netdev

priv->eeprom is a pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/net/wireless/ipw2200.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -2456,7 +2456,7 @@ static void ipw_eeprom_init_sram(struct 
 	   copy.  Otherwise let the firmware know to perform the operation
 	   on it's own
 	 */
-	if ((priv->eeprom + EEPROM_VERSION) != 0) {
+	if (priv->eeprom[EEPROM_VERSION] != 0) {
 		IPW_DEBUG_INFO("Writing EEPROM data into SRAM\n");
 
 		/* write the eeprom data to sram */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check
  2006-01-25  0:44 [PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check Alexey Dobriyan
@ 2006-01-25  4:34 ` Zhu Yi
  0 siblings, 0 replies; 2+ messages in thread
From: Zhu Yi @ 2006-01-25  4:34 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Andrew Morton, linux-kernel, netdev

Acked.

Thanks,
-yi

On Wed, 2006-01-25 at 03:44 +0300, Alexey Dobriyan wrote:
> priv->eeprom is a pointer.
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  drivers/net/wireless/ipw2200.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/net/wireless/ipw2200.c
> +++ b/drivers/net/wireless/ipw2200.c
> @@ -2456,7 +2456,7 @@ static void ipw_eeprom_init_sram(struct 
>  	   copy.  Otherwise let the firmware know to perform the operation
>  	   on it's own
>  	 */
> -	if ((priv->eeprom + EEPROM_VERSION) != 0) {
> +	if (priv->eeprom[EEPROM_VERSION] != 0) {
>  		IPW_DEBUG_INFO("Writing EEPROM data into SRAM\n");
>  
>  		/* write the eeprom data to sram */
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-25  4:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25  0:44 [PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check Alexey Dobriyan
2006-01-25  4:34 ` Zhu Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).