[PATCH 5/9] staging: otus: '&pointer[0]' to 'pointer' fix

From: Andy Shevchenko
Date: Fri Sep 17 2010 - 04:25:22 EST


Signed-off-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
---
drivers/staging/otus/ioctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/otus/ioctl.c b/drivers/staging/otus/ioctl.c
index 405bd29..a403d9c 100644
--- a/drivers/staging/otus/ioctl.c
+++ b/drivers/staging/otus/ioctl.c
@@ -2188,7 +2188,7 @@ int usbdrv_wpa_ioctl(struct net_device *dev, struct athr_wlan_param *zdparm)
printk(KERN_ERR "usbdrv_wpa_ioctl: ZD_CMD_SET_MLME\n");

/* Translate STA's address */
- sprintf(mac_addr, "%pM", &zdparm->sta_addr[0]);
+ sprintf(mac_addr, "%pM", zdparm->sta_addr);

switch (zdparm->u.mlme.cmd) {
case MLME_STA_DEAUTH:
--
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/