summaryrefslogtreecommitdiff
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-06-05 02:49:49 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-05 05:06:24 +0300
commit2b7874490243e014112100925405c4a17a8c40aa (patch)
tree3c421e4b05809ba6e5784f1b794ce07292152671 /include/linux/mm.h
parentfa1f68cc88f1dce6b7bb37628eb7c25c96593183 (diff)
downloadlinux-2b7874490243e014112100925405c4a17a8c40aa.tar.xz
include/linux/mm.h: return true in cpupid_pid_unset()
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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200422071816.48879-1-yanaijie@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 1744081a34d4..86adc71a972f 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1373,7 +1373,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)