All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V5 0/2] staging: wfx: cleanups
@ 2019-11-05  1:03 Jules Irenge
  2019-11-05  1:03 ` [PATCH V5 1/2] staging: wfx: replace 0 by NULL Jules Irenge
  2019-11-05  1:03 ` [PATCH V5 2/2] staging: wfx: replace 1 by true Jules Irenge
  0 siblings, 2 replies; 4+ messages in thread
From: Jules Irenge @ 2019-11-05  1:03 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, Boqun.Feng, Jules Irenge

Changes since
* v1 submits changes with no accurate log message and title
* v2 improves on log message description: remove the word "fixing", rephrase
log message and  title.
* v3 gives accurate description on the changes and reasons behind.
* v4 includes a log of changes done on each version.
* v5 shorten the subject line not to be idential to commit log.

Jules Irenge (2):
  staging: wfx: replace 0 by NULL
  staging: wfx: replace 1 by true

 drivers/staging/wfx/queue.c | 4 ++--
 drivers/staging/wfx/sta.c   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.23.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH V5 1/2] staging: wfx: replace 0 by NULL
  2019-11-05  1:03 [PATCH V5 0/2] staging: wfx: cleanups Jules Irenge
@ 2019-11-05  1:03 ` Jules Irenge
  2019-11-05  1:03 ` [PATCH V5 2/2] staging: wfx: replace 1 by true Jules Irenge
  1 sibling, 0 replies; 4+ messages in thread
From: Jules Irenge @ 2019-11-05  1:03 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, Boqun.Feng, Jules Irenge

Replace 0 by NULL as the return value of a pointer-returning function.
Issue detected by sparse tool.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
changes since
v1 submits change of zero to NULL with no accurate log message of what
was done and title.
v2 improves on log message description: remove the word "fixing", rephrase
log message and title.
v3 gives accurate log description on changes and reason behind.
v4 includes a log of changes done on each version.
v5 shorten subject line not to be identical as commit log

 drivers/staging/wfx/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c
index ef3ee55cf621..5d29bce65f71 100644
--- a/drivers/staging/wfx/queue.c
+++ b/drivers/staging/wfx/queue.c
@@ -565,7 +565,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
 		}
 
 		if (ret)
-			return 0;
+			return NULL;
 
 		queue_num = queue - wdev->tx_queue;
 
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V5 2/2] staging: wfx: replace 1 by true
  2019-11-05  1:03 [PATCH V5 0/2] staging: wfx: cleanups Jules Irenge
  2019-11-05  1:03 ` [PATCH V5 1/2] staging: wfx: replace 0 by NULL Jules Irenge
@ 2019-11-05  1:03 ` Jules Irenge
  1 sibling, 0 replies; 4+ messages in thread
From: Jules Irenge @ 2019-11-05  1:03 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, Boqun.Feng, Jules Irenge

Replace 1 by true when it is stored in a boolean variable.
Recommended by coccinelle tool.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
v1 submits change of 1 to true with no accurate log message of what
was done reason.
v2 merges two patches for the same issue into a single one, improves on log message description: rephrase, change the term warning to recommended by coccinelle tool.
v3 gives accurate description on what was changed and reason behind:
change from fixing to replace to indicate what was done.
v4 includes logs of changes done on each version.
v5 shortens subject line to give only idea of what done.

 drivers/staging/wfx/queue.c | 2 +-
 drivers/staging/wfx/sta.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c
index 5d29bce65f71..71e92744fed0 100644
--- a/drivers/staging/wfx/queue.c
+++ b/drivers/staging/wfx/queue.c
@@ -550,7 +550,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
 			spin_unlock_bh(&wvif->ps_state_lock);
 
 			if (vif_more) {
-				more = 1;
+				more = true;
 				tx_allowed_mask = vif_tx_allowed_mask;
 				queue = vif_queue;
 				ret = 0;
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index 688586e823c0..ea5707ff8847 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -291,7 +291,7 @@ u64 wfx_prepare_multicast(struct ieee80211_hw *hw, struct netdev_hw_addr_list *m
 			ether_addr_copy(wvif->mcast_filter.address_list[i], ha->addr);
 			i++;
 		}
-		wvif->mcast_filter.enable = 1;
+		wvif->mcast_filter.enable = true;
 		wvif->mcast_filter.num_addresses = count;
 	}
 
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH V5 1/2] staging: wfx: replace 0 by NULL
  2019-11-03 18:13 [PATCH V5 0/2] staging: wfx: cleanups Jules Irenge
@ 2019-11-03 18:13 ` Jules Irenge
  0 siblings, 0 replies; 4+ messages in thread
From: Jules Irenge @ 2019-11-03 18:13 UTC (permalink / raw)
  To: outreachy-kernel
  Cc: gregkh, julia.lawall, Boqun.Feng, jerome.pouiller, Jules Irenge

Replace 0 by NULL as the return value of a pointer-returning function.
Issue detected by sparse tool.

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
changes since
v1 submits change of zero to NULL with no accurate log message of what
was done and title.
v2 improves on log message description: remove the word "fixing", rephrase
log message and title.
v3 gives accurate log description on changes and reason behind.
v4 includes a log of changes done on each version.
v5 shorten subject line not to be identical as commit log

 drivers/staging/wfx/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c
index ef3ee55cf621..5d29bce65f71 100644
--- a/drivers/staging/wfx/queue.c
+++ b/drivers/staging/wfx/queue.c
@@ -565,7 +565,7 @@ struct hif_msg *wfx_tx_queues_get(struct wfx_dev *wdev)
 		}
 
 		if (ret)
-			return 0;
+			return NULL;
 
 		queue_num = queue - wdev->tx_queue;
 
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-05  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05  1:03 [PATCH V5 0/2] staging: wfx: cleanups Jules Irenge
2019-11-05  1:03 ` [PATCH V5 1/2] staging: wfx: replace 0 by NULL Jules Irenge
2019-11-05  1:03 ` [PATCH V5 2/2] staging: wfx: replace 1 by true Jules Irenge
  -- strict thread matches above, loose matches on Subject: below --
2019-11-03 18:13 [PATCH V5 0/2] staging: wfx: cleanups Jules Irenge
2019-11-03 18:13 ` [PATCH V5 1/2] staging: wfx: replace 0 by NULL Jules Irenge

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.