linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: return true in cpupid_pid_unset()
@ 2020-04-22  7:18 Jason Yan
  0 siblings, 0 replies; only message in thread
From: Jason Yan @ 2020-04-22  7:18 UTC (permalink / raw)
  To: akpm, linux-mm, linux-kernel; +Cc: Jason Yan

Fix the following coccicheck warning:

include/linux/mm.h:1371:8-9: WARNING: return of 0/1 in function
'cpupid_pid_unset' with return type bool

Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 2b0390017633..35f58a3601ab 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1368,7 +1368,7 @@ static inline int cpu_pid_to_cpupid(int nid, int pid)
 
 static inline bool cpupid_pid_unset(int cpupid)
 {
-	return 1;
+	return true;
 }
 
 static inline void page_cpupid_reset_last(struct page *page)
-- 
2.21.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-22  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  7:18 [PATCH] mm: return true in cpupid_pid_unset() Jason Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).