2012-05-20 13:31:51

by devendra.aaru

[permalink] [raw]
Subject: [PATCH] staging/wlan-ng: Fix the checkpatch warnings

Signed-off-by: Devendra Naga <[email protected]>
---
drivers/staging/wlan-ng/cfg80211.c | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 4cd3ba5..999ebfe 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -73,7 +73,9 @@ static int prism2_result2err(int prism2_result)
static int prism2_domibset_uint32(wlandevice_t *wlandev, u32 did, u32 data)
{
struct p80211msg_dot11req_mibset msg;
- p80211item_uint32_t *mibitem = (p80211item_uint32_t *) &msg.mibattribute.data;
+ p80211item_uint32_t *mibitem;
+
+ mibitem = (p80211item_uint32_t *) &msg.mibattribute.data;

msg.msgcode = DIDmsg_dot11req_mibset;
mibitem->did = did;
@@ -86,7 +88,9 @@ static int prism2_domibset_pstr32(wlandevice_t *wlandev,
u32 did, u8 len, u8 *data)
{
struct p80211msg_dot11req_mibset msg;
- p80211item_pstr32_t *mibitem = (p80211item_pstr32_t *) &msg.mibattribute.data;
+ p80211item_pstr32_t *mibitem;
+
+ mibitem = (p80211item_pstr32_t *) &msg.mibattribute.data;

msg.msgcode = DIDmsg_dot11req_mibset;
mibitem->did = did;
@@ -127,7 +131,9 @@ int prism2_change_virtual_intf(struct wiphy *wiphy,
}

/* Set Operation mode to the PORT TYPE RID */
- result = prism2_domibset_uint32(wlandev, DIDmib_p2_p2Static_p2CnfPortType, data);
+ result = prism2_domibset_uint32(wlandev,
+ DIDmib_p2_p2Static_p2CnfPortType,
+ data);

if (result)
err = -EFAULT;
@@ -180,7 +186,8 @@ int prism2_add_key(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}

- result = prism2_domibset_pstr32(wlandev, did, params->key_len, params->key);
+ result = prism2_domibset_pstr32(wlandev, did,
+ params->key_len, params->key);
if (result)
goto exit;
break;
@@ -362,7 +369,9 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev,
if (request->n_ssids > 0) {
msg1.scantype.data = P80211ENUM_scantype_active;
msg1.ssid.data.len = request->ssids->ssid_len;
- memcpy(msg1.ssid.data.data, request->ssids->ssid, request->ssids->ssid_len);
+ memcpy(msg1.ssid.data.data,
+ request->ssids->ssid,
+ request->ssids->ssid_len);
} else {
msg1.scantype.data = 0;
}
@@ -532,7 +541,8 @@ int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
goto exit;
}

- result = prism2_domibset_pstr32(wlandev, did, sme->key_len, (u8 *) sme->key);
+ result = prism2_domibset_pstr32(wlandev, did,
+ sme->key_len, (u8 *) sme->key);
if (result)
goto exit;

@@ -681,7 +691,8 @@ exit:
/* Interface callback functions, passing data back up to the cfg80211 layer */
void prism2_connect_result(wlandevice_t *wlandev, u8 failed)
{
- u16 status = failed ? WLAN_STATUS_UNSPECIFIED_FAILURE : WLAN_STATUS_SUCCESS;
+ u16 status = failed ? WLAN_STATUS_UNSPECIFIED_FAILURE
+ : WLAN_STATUS_SUCCESS;

cfg80211_connect_result(wlandev->netdev, wlandev->bssid,
NULL, 0, NULL, 0, status, GFP_KERNEL);
@@ -724,7 +735,7 @@ struct wiphy *wlan_create_wiphy(struct device *dev, wlandevice_t *wlandev)
{
struct wiphy *wiphy;
struct prism2_wiphy_private *priv;
- wiphy = wiphy_new(&prism2_usb_cfg_ops, sizeof(struct prism2_wiphy_private));
+ wiphy = wiphy_new(&prism2_usb_cfg_ops, sizeof(*priv));
if (!wiphy)
return NULL;

--
1.7.9.5


2012-06-05 06:44:25

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] staging/wlan-ng: Fix the checkpatch warnings

On Sun, May 20, 2012 at 07:01:42PM +0530, Devendra Naga wrote:
> Signed-off-by: Devendra Naga <[email protected]>
> ---
> drivers/staging/wlan-ng/cfg80211.c | 27 +++++++++++++++++++--------
> 1 file changed, 19 insertions(+), 8 deletions(-)


Ok, you sent me 5 patches, all with the same subject (except for 3 of
them you used x/3, which was nice, but you duplicated 3/3 for some
reason.)

I can't accept that, please be more specific in your subject: line.

Also, in the body, say exactly what checkpatch warnings you fixed, and,
if you fixed more than one type of warning, that might indicate that you
should break the patch up into different parts.

So, I've dropped all 5 patches you've sent me, please redo and resend.

thanks,

greg k-h

2012-06-05 10:23:26

by devendra.aaru

[permalink] [raw]
Subject: Re: [PATCH] staging/wlan-ng: Fix the checkpatch warnings

Hi Greg,

Thanks for the review.

On Tue, Jun 5, 2012 at 9:28 AM, Greg Kroah-Hartman
<[email protected]> wrote:
> On Sun, May 20, 2012 at 07:01:42PM +0530, Devendra Naga wrote:
>> Signed-off-by: Devendra Naga <[email protected]>
>> ---
>> ?drivers/staging/wlan-ng/cfg80211.c | ? 27 +++++++++++++++++++--------
>> ?1 file changed, 19 insertions(+), 8 deletions(-)
>
>
> Ok, you sent me 5 patches, all with the same subject (except for 3 of
> them you used x/3, which was nice, but you duplicated 3/3 for some
> reason.)
>
No i actually copy pasted your name wrongly, so i resent it again with
correct name.
> I can't accept that, please be more specific in your subject: line.
>
> Also, in the body, say exactly what checkpatch warnings you fixed, and,
> if you fixed more than one type of warning, that might indicate that you
> should break the patch up into different parts.
>
Ok. so similar changes constitute a patch, and if the change differs a
new patch should be there.
> So, I've dropped all 5 patches you've sent me, please redo and resend.
>
Thanks, i will redo again.
> thanks,
>
> greg k-h

Thanks,
Devendra.