staging: otus: '&pointer[0]' to 'pointer' fix
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Fri, 17 Sep 2010 08:24:47 +0000 (11:24 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 23:10:56 +0000 (16:10 -0700)
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/otus/ioctl.c

index 405bd2901859095c3b8d553b6a82cf1ec133a871..a403d9ccd5e8ccf75028ef0e21c87cbc20c11c54 100644 (file)
@@ -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: