[PATCH] staging: ralink-gdma: ralink-gdma.c fixed line width

2019-03-24 Thread Dominik Adamski
Fix checkpatch issue:
line over 80 characters

Signed-off-by: Dominik Adamski 
---
 drivers/staging/ralink-gdma/ralink-gdma.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c 
b/drivers/staging/ralink-gdma/ralink-gdma.c
index dfdc425557b6..97dd2ca2d261 100644
--- a/drivers/staging/ralink-gdma/ralink-gdma.c
+++ b/drivers/staging/ralink-gdma/ralink-gdma.c
@@ -740,7 +740,9 @@ static void gdma_dma_tasklet(unsigned long arg)
atomic_inc(_dev->cnt);
gdma_start_transfer(dma_dev, chan);
} else {
-   dev_dbg(dma_dev->ddev.dev, "chan %d no desc to 
issue\n", chan->id);
+   dev_dbg(dma_dev->ddev.dev,
+   "chan %d no desc to issue\n",
+   chan->id);
}
if (!dma_dev->chan_issued)
break;
-- 
2.19.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: rtl8192e: rtllib_rx.c remove multiple blank lines

2019-03-19 Thread Dominik Adamski
Fix checkpatch issue:
Please don't use multiple blank lines

Signed-off-by: Dominik Adamski 
---
 drivers/staging/rtl8192e/rtllib_rx.c | 14 --
 1 file changed, 14 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c 
b/drivers/staging/rtl8192e/rtllib_rx.c
index debc2e40af00..6e8010591d7e 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -20,7 +20,6 @@
 
 **/
 
-
 #include 
 #include 
 #include 
@@ -162,7 +161,6 @@ rtllib_frag_cache_get(struct rtllib_device *ieee,
return skb;
 }
 
-
 /* Called only as a tasklet (software IRQ) */
 static int rtllib_frag_cache_invalidate(struct rtllib_device *ieee,
   struct rtllib_hdr_4addr *hdr)
@@ -326,7 +324,6 @@ rtllib_rx_frame_decrypt(struct rtllib_device *ieee, struct 
sk_buff *skb,
return res;
 }
 
-
 /* Called only as a tasklet (software IRQ), by rtllib_rx */
 static inline int
 rtllib_rx_frame_decrypt_msdu(struct rtllib_device *ieee, struct sk_buff *skb,
@@ -363,7 +360,6 @@ rtllib_rx_frame_decrypt_msdu(struct rtllib_device *ieee, 
struct sk_buff *skb,
return 0;
 }
 
-
 /* this function is stolen from ipw2200 driver*/
 #define IEEE_PACKET_RETRY_TIME (5*HZ)
 static int is_duplicate_packet(struct rtllib_device *ieee,
@@ -895,7 +891,6 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct 
sk_buff *skb,
return rxb->nr_subframes;
 }
 
-
 static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee,
   struct sk_buff *skb,
   struct rtllib_rx_stats *rx_stats)
@@ -1579,7 +1574,6 @@ static int rtllib_verify_qos_info(struct 
rtllib_qos_information_element
return 0;
 }
 
-
 /* Parse a QoS parameter element */
 static int rtllib_read_qos_param_element(struct rtllib_qos_parameter_info
*element_param,
@@ -1634,7 +1628,6 @@ static int rtllib_read_qos_info_element(struct 
rtllib_qos_information_element
return ret;
 }
 
-
 /* Write QoS parameters from the ac parameters. */
 static int rtllib_qos_convert_ac_to_parameters(struct 
rtllib_qos_parameter_info *param_elm,
   struct rtllib_qos_data *qos_data)
@@ -1877,7 +1870,6 @@ static void rtllib_parse_mife_generic(struct 
rtllib_device *ieee,
}
}
 
-
if (*tmp_htinfo_len == 0) {
if (info_element->len >= 4 &&
info_element->data[0] == 0x00 &&
@@ -1965,7 +1957,6 @@ static void rtllib_parse_mife_generic(struct 
rtllib_device *ieee,
info_element->data[2] == 0x96)
network->cisco_cap_exist = true;
 
-
if (info_element->len >= 3 &&
info_element->data[0] == 0x00 &&
info_element->data[1] == 0x0a &&
@@ -2175,13 +2166,11 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,
 
network->dtim_data = RTLLIB_DTIM_VALID;
 
-
if (info_element->data[2] & 1)
network->dtim_data |= RTLLIB_DTIM_MBCAST;
 
offset = (info_element->data[2] >> 1)*2;
 
-
if (ieee->assoc_id < 8*offset ||
ieee->assoc_id > 8*(offset + info_element->len - 3))
break;
@@ -2236,7 +2225,6 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,
 _htcap_len);
break;
 
-
case MFIE_TYPE_HT_INFO:
netdev_dbg(ieee->dev, "MFIE_TYPE_HT_INFO: %d bytes\n",
   info_element->len);
@@ -2426,7 +2414,6 @@ static inline int is_same_network(struct rtllib_network 
*src,
(dst->capability & WLAN_CAPABILITY_ESS)));
 }
 
-
 static inline void update_network(struct rtllib_device *ieee,
  struct rtllib_network *dst,
  struct rtllib_network *src)
@@ -2614,7 +2601,6 @@ static inline void rtllib_process_probe_response(
goto free_network;
}
 
-
if (!rtllib_legal_channel(ieee, network->channel))
goto free_network;
 
-- 
2.19.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: greybus: bundle.c fix comparison to NULL

2019-03-04 Thread Dominik Adamski
Fix checkpatch issue:
Comparison to NULL could be written "!bundle->state"

Signed-off-by: Dominik Adamski 
---
 drivers/staging/greybus/bundle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
index e97b2b87ba47..3f702db9e098 100644
--- a/drivers/staging/greybus/bundle.c
+++ b/drivers/staging/greybus/bundle.c
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct 
device_attribute *attr,
 {
struct gb_bundle *bundle = to_gb_bundle(dev);
 
-   if (bundle->state == NULL)
+   if (!bundle->state)
return sprintf(buf, "\n");
 
return sprintf(buf, "%s\n", bundle->state);
-- 
2.19.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: erofs: dir.c fix "alignment should match open parenthesis" issues

2019-03-03 Thread Dominik Adamski
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis"

Signed-off-by: Dominik Adamski 
---
 drivers/staging/erofs/dir.c | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/erofs/dir.c b/drivers/staging/erofs/dir.c
index 833f052f79d0..e1955703ab8f 100644
--- a/drivers/staging/erofs/dir.c
+++ b/drivers/staging/erofs/dir.c
@@ -24,8 +24,8 @@ static const unsigned char erofs_filetype_table[EROFS_FT_MAX] 
= {
 };
 
 static int erofs_fill_dentries(struct dir_context *ctx,
-   void *dentry_blk, unsigned int *ofs,
-   unsigned int nameoff, unsigned int maxsize)
+  void *dentry_blk, unsigned int *ofs,
+  unsigned int nameoff, unsigned int maxsize)
 {
struct erofs_dirent *de = dentry_blk;
const struct erofs_dirent *end = dentry_blk + nameoff;
@@ -104,9 +104,9 @@ static int erofs_readdir(struct file *f, struct dir_context 
*ctx)
nameoff = le16_to_cpu(de->nameoff);
 
if (unlikely(nameoff < sizeof(struct erofs_dirent) ||
-   nameoff >= PAGE_SIZE)) {
+nameoff >= PAGE_SIZE)) {
errln("%s, invalid de[0].nameoff %u",
-   __func__, nameoff);
+ __func__, nameoff);
 
err = -EIO;
goto skip_this;
-- 
2.19.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel