[PATCH] Staging: ks7010: fix unnecessary parentheses in ks_hostif.c

2018-02-17 Thread Yash Omer
This patch fixes up unncessary parentheses warning found by checkpatch.pl script

Signed-off-by: Yash Omer
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c 
b/drivers/staging/ks7010/ks_hostif.c
index 7bd567e233d7..36055652842d 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -36,7 +36,7 @@ inline u8 get_BYTE(struct ks_wlan_private *priv)
 {
u8 data;
 
-   data = *(priv->rxp)++;
+   data = *priv->rxp++;
/* length check in advance ! */
--(priv->rx_size);
return data;
-- 
2.14.3



[PATCH] Staging: xgifb: fix lines should not end with open parenthesis in vb_setmode.c

2018-02-16 Thread Yash Omer
This patch fixes up line should not end with open parenthesis found by 
checkpatch.pl script.

Signed-off-by: Yash Omer 
---
 drivers/staging/xgifb/vb_setmode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/xgifb/vb_setmode.c 
b/drivers/staging/xgifb/vb_setmode.c
index 1fa0dc66406e..1d6ac724fd61 100644
--- a/drivers/staging/xgifb/vb_setmode.c
+++ b/drivers/staging/xgifb/vb_setmode.c
@@ -1228,8 +1228,8 @@ static void const *XGI_GetLcdPtr(struct 
XGI330_LCDDataTablStruct const *table,
return table[i].DATAPTR;
 }
 
-static struct SiS_TVData const *XGI_GetTVPtr(
-   unsigned short ModeIdIndex,
+static struct SiS_TVData const *XGI_GetTVPtr
+(unsigned short ModeIdIndex,
unsigned short RefreshRateTableIndex,
struct vb_device_info *pVBInfo)
 {
-- 
2.14.3



[PATCH] Staging: nvec: fix line should not end with a open parenthesis.

2018-02-16 Thread Yash Omer
This patch fix line should not end with open parenthesis found by 
checkpatch.plscript.

Signed-off-by: Yash Omer 
---
 drivers/staging/nvec/nvec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c
index 52054a528723..39fb737543b5 100644
--- a/drivers/staging/nvec/nvec.c
+++ b/drivers/staging/nvec/nvec.c
@@ -383,8 +383,8 @@ static void nvec_request_master(struct work_struct *work)
msg = list_first_entry(&nvec->tx_data, struct nvec_msg, node);
spin_unlock_irqrestore(&nvec->tx_lock, flags);
nvec_gpio_set_value(nvec, 0);
-   err = wait_for_completion_interruptible_timeout(
-   &nvec->ec_transfer, msecs_to_jiffies(5000));
+   err = wait_for_completion_interruptible_timeout
+   (&nvec->ec_transfer, msecs_to_jiffies(5000));
 
if (err == 0) {
dev_warn(nvec->dev, "timeout waiting for ec 
transfer\n");
-- 
2.14.3



[PATCH] Staging : wlan-ng: fix unnecessary parentheses in prism2mgmt.c

2018-02-15 Thread Yash Omer
This patch fixes up unnecessary parentheses warning found by checkpatch.pl 
script.

Signed-off-by: Yash Omer 
---
 drivers/staging/wlan-ng/prism2mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/prism2mgmt.c 
b/drivers/staging/wlan-ng/prism2mgmt.c
index 236961e3ba0d..90cc6cd8 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -1065,7 +1065,7 @@ int prism2mgmt_autojoin(struct wlandevice *wlandev, void 
*msgp)
 
/* Set the ssid */
memset(bytebuf, 0, 256);
-   pstr = (struct p80211pstrd *)&(msg->ssid.data);
+   pstr = (struct p80211pstrd *)&msg->ssid.data;
prism2mgmt_pstr2bytestr(p2bytestr, pstr);
result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFDESIREDSSID,
bytebuf,
-- 
2.14.3



[PATCH] Staging: wlan-ng: fix unnecessary parantheses in prism2mgmt.c

2018-02-15 Thread Yash Omer
This patch fixes up a unncessary paratheses warning found by checkpatch.pl 
script.

Signed-off-by: Yash Omer 
---
 drivers/staging/wlan-ng/prism2mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/prism2mgmt.c 
b/drivers/staging/wlan-ng/prism2mgmt.c
index e47a839f83a6..236961e3ba0d 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -564,7 +564,7 @@ int prism2mgmt_start(struct wlandevice *wlandev, void *msgp)
/*** STATION ***/
/* Set the REQUIRED config items */
/* SSID */
-   pstr = (struct p80211pstrd *)&(msg->ssid.data);
+   pstr = (struct p80211pstrd *)&msg->ssid.data;
prism2mgmt_pstr2bytestr(p2bytestr, pstr);
result = hfa384x_drvr_setconfig(hw, HFA384x_RID_CNFOWNSSID,
bytebuf, HFA384x_RID_CNFOWNSSID_LEN);
-- 
2.14.3



[PATCH] Staging: wlan-ng: Fix Alignment should match open paranthesis in prism2mgmt.c

2018-02-15 Thread Yash Omer
This is patch fixes up a matching paranthesis alignment issue found by 
checkpatch.pl script.

Signed-off-by: Yash Omer 
---
 drivers/staging/wlan-ng/prism2mgmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/prism2mgmt.c 
b/drivers/staging/wlan-ng/prism2mgmt.c
index 5be1af20d2d4..974a7572fafc 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -264,8 +264,8 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
goto exit;
}
/* ibss options */
-   result = hfa384x_drvr_setconfig16(hw,
-   HFA384x_RID_CREATEIBSS,
+   result = hfa384x_drvr_setconfig16
+   (hw, HFA384x_RID_CREATEIBSS,
HFA384x_CREATEIBSS_JOINCREATEIBSS);
if (result) {
netdev_err(wlandev->netdev,
-- 
2.14.3