MIPS: ath79: Fix test for error return of clk_register_fixed_factor().
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Fri, 12 Aug 2016 03:06:54 +0000 (08:36 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 16 Aug 2016 13:45:40 +0000 (15:45 +0200)
commit85587cb39ce9a3b6391177c42cb5ee94951cf72c
tree557cced8756213747b3f7a8074e46be2ea5786fc
parent694d0d0bb2030d2e36df73e2d23d5770511dbc8d
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: Amitoj 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: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/clock.c
This page took 0.029631 seconds and 5 git commands to generate.