Skip to contentSkip to conversation

atmel: printing bogus information

PATCH In review Dan Carpenter 2 participants 2 messages Apr 30, 2013 – May 2, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmel: printing bogus information

There was an extra ';' character added to the end of the if statement which means that it always prints that the /proc entry wasn't created even though it was.

drivers/net/wireless/atmel.c +1 -1
index 23a3498..2876b90 100644
@@ -1624,7 +1624,7 @@ struct net_device *init_atmel_card(unsigned short irq, unsigned long port,
 
 	netif_carrier_off(dev);
 
-	if (!proc_create_data("driver/atmel", 0, NULL, &atmel_proc_fops, priv));
+	if (!proc_create_data("driver/atmel", 0, NULL, &atmel_proc_fops, priv))
 		printk(KERN_WARNING "atmel: unable to create /proc entry.\n");
 
 	printk(KERN_INFO "%s: Atmel at76c50x. Version %d.%d. MAC %pM\n",