Skip to content
Commit e3b23148 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Ralf Baechle
Browse files

MIPS: ath79: Fix test for error return of clk_register_fixed_factor().



clk_register_fixed_factor returns an ERR_PTR in case of an error and
should have an IS_ERR check instead of a null check.

The Coccinelle semantic patch used to find this issue is as follows:
@@
expression e;
statement S;
@@

*e = clk_register_fixed_factor(...);
if (!e) S

Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: julia.lawall@lip6.fr
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/13894/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9395452b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment