]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/cma: fix useless return in void function
authorPintu Kumar <quic_pintu@quicinc.com>
Fri, 27 Sep 2024 18:16:37 +0000 (23:46 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:52 +0000 (21:28 -0700)
commitec90c2820960d6cdb19c12ba1fc6b7a24c1df580
treef4475c68549c23307eb5ec23c0f5ebcb0b8a1184
parentab9d5a09f54501441b2a8d1fd4c6a083bbafd5de
mm/cma: fix useless return in void function

There is a unnecessary return statement at the end of void function
cma_activate_area.  This can be dropped.

While at it, also fix another warning related to unsigned.
These are reported by checkpatch as well.

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+unsigned cma_area_count;

WARNING: void function return statements are not generally useful
+       return;
+}

Link: https://lkml.kernel.org/r/20240927181637.19941-1-quic_pintu@quicinc.com
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
Cc: Pintu Agarwal <pintu.ping@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/cma.c