projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b68b08
)
ep93xx: clock: Don't use plain integer as NULL pointer
author
Alexander Sverdlin
<alexander.sverdlin@gmail.com>
Thu, 20 Jan 2022 13:37:39 +0000
(14:37 +0100)
committer
Arnd Bergmann
<arnd@arndb.de>
Thu, 7 Apr 2022 11:56:49 +0000
(13:56 +0200)
Fix sparse warning:
arch/arm/mach-ep93xx/clock.c:210:35: sparse: sparse: Using plain integer as NULL pointer
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link:
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/TLFJ6D7WGMDJSQ6XK7UZE4XR2PLRZJSV/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-ep93xx/clock.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-ep93xx/clock.c
b/arch/arm/mach-ep93xx/clock.c
index 28e0ae6e890e5b16759a4b639e62b767a8891897..4fa6ea5461b79b33d4ef79f9d2d42daddfb2a499 100644
(file)
--- a/
arch/arm/mach-ep93xx/clock.c
+++ b/
arch/arm/mach-ep93xx/clock.c
@@
-209,7
+209,7
@@
static int ep93xx_mux_determine_rate(struct clk_hw *hw,
struct clk_rate_request *req)
{
unsigned long rate = req->rate;
- struct clk *best_parent =
0
;
+ struct clk *best_parent =
NULL
;
unsigned long __parent_rate;
unsigned long best_rate = 0, actual_rate, mclk_rate;
unsigned long best_parent_rate;