Commit 57b6686e authored by Tapasweni Pathak's avatar Tapasweni Pathak Committed by Greg Kroah-Hartman

Staging: rtl8712 : Fix line over 80 characters

This patch fixes checkpatch.pl warning in files of rtl8712
WARNING : line over 80 characters
Signed-off-by: default avatarTapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d76a7e4
......@@ -468,7 +468,8 @@ void r8712_event_handle(struct _adapter *padapter, uint *peventbuf)
pevt_priv->event_seq++; /* update evt_seq */
if (pevt_priv->event_seq > 127)
pevt_priv->event_seq = 0;
peventbuf = peventbuf + 2; /* move to event content, 8 bytes alignment */
/* move to event content, 8 bytes alignment */
peventbuf = peventbuf + 2;
event_callback = wlanevents[evt_code].event_callback;
if (event_callback)
event_callback(padapter, (u8 *)peventbuf);
......
......@@ -425,8 +425,8 @@ static int wpa_set_encryption(struct net_device *dev, struct ieee_param *param,
if (wep_key_len > 0) {
wep_key_len = wep_key_len <= 5 ? 5 : 13;
pwep = kmalloc((u32)(wep_key_len +
FIELD_OFFSET(struct NDIS_802_11_WEP, KeyMaterial)),
GFP_ATOMIC);
FIELD_OFFSET(struct NDIS_802_11_WEP,
KeyMaterial)), GFP_ATOMIC);
if (pwep == NULL)
return -ENOMEM;
memset(pwep, 0, sizeof(struct NDIS_802_11_WEP));
......@@ -1563,7 +1563,8 @@ static int r8711_wx_set_enc(struct net_device *dev,
authmode = Ndis802_11AuthModeOpen;
padapter->securitypriv.ndisauthtype = authmode;
} else if (erq->flags & IW_ENCODE_RESTRICTED) {
netdev_info(dev, "r8712u: %s: IW_ENCODE_RESTRICTED\n", __func__);
netdev_info(dev,
"r8712u: %s: IW_ENCODE_RESTRICTED\n", __func__);
padapter->securitypriv.ndisencryptstatus =
Ndis802_11Encryption1Enabled;
padapter->securitypriv.AuthAlgrthm = 1; /* shared system */
......
......@@ -581,9 +581,11 @@ static int r871xu_drv_init(struct usb_interface *pusb_intf,
* address by setting bit 1 of first octet.
*/
mac[0] &= 0xFE;
dev_info(&udev->dev, "r8712u: MAC Address from user = %pM\n", mac);
dev_info(&udev->dev,
"r8712u: MAC Address from user = %pM\n", mac);
} else
dev_info(&udev->dev, "r8712u: MAC Address from efuse = %pM\n", mac);
dev_info(&udev->dev,
"r8712u: MAC Address from efuse = %pM\n", mac);
memcpy(pnetdev->dev_addr, mac, ETH_ALEN);
}
/* step 6. Load the firmware asynchronously */
......
......@@ -382,7 +382,8 @@ static void usb_write_port_complete(struct urb *purb)
case 0:
break;
default:
netdev_warn(padapter->pnetdev, "r8712u: pipe error: (%d)\n", purb->status);
netdev_warn(padapter->pnetdev,
"r8712u: pipe error: (%d)\n", purb->status);
break;
}
/* not to consider tx fragment */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment