Skip to content

Commit e8265a9

Browse files
Yang Liandrom3da
authored andcommitted
hexagon: Fix warning comparing pointer to 0
./arch/hexagon/kernel/traps.c:138:6-7: WARNING comparing pointer to 0 Avoid pointer type value compared with 0 to make code clear. Reported-by: Abaci Robot <[email protected]> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3978 Signed-off-by: Yang Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Brian Cain <[email protected]> Signed-off-by: Brian Cain <[email protected]>
1 parent e882d6f commit e8265a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/hexagon/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static void do_show_stack(struct task_struct *task, unsigned long *fp,
135135
}
136136

137137
/* Attempt to continue past exception. */
138-
if (0 == newfp) {
138+
if (!newfp) {
139139
struct pt_regs *regs = (struct pt_regs *) (((void *)fp)
140140
+ 8);
141141

0 commit comments

Comments
 (0)