Skip to contentSkip to conversation

libertas: cleanup a variable name

PATCH Applied Dan Carpenter 2 participants 2 messages Nov 26, 2015 – Nov 30, 2015

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

PATCH 1/1 libertas: cleanup a variable name

"&card->priv->driver_lock" and "&priv->driver_lock" are the same and it's nicer to use the shorter one consistently.

drivers/net/wireless/marvell/libertas/if_sdio.c +1 -1
index 33ceda2..68fd3a9 100644
@@ -228,7 +228,7 @@ static int if_sdio_handle_cmd(struct if_sdio_card *card,
 	memcpy(priv->resp_buf[i], buffer, size);
 	lbs_notify_command_response(priv, i);
 
-	spin_unlock_irqrestore(&card->priv->driver_lock, flags);
+	spin_unlock_irqrestore(&priv->driver_lock, flags);
 
 	ret = 0;
 
Applied
#1 lore raw
Quoted 5 lines

"&card->priv->driver_lock" and "&priv->driver_lock" are the same and it's nicer to use the shorter one consistently.

Thanks, applied to wireless-drivers-next.git.

Kalle Valo