diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2015-04-16 20:17:46 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-13 05:14:26 -0700 |
commit | 99d705238af572efa5f8834d0d8255d5bdc5d6eb (patch) | |
tree | 2e6e11eb682e19374644d3ecbe0ba09fe7b54e21 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9041f7e0f35402d0f2527ec952523e4086b83322 (diff) |
ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()
commit 427ced4b203dfea4f08b1298cd1f88e19039fca4 upstream.
In case of error, the function devm_kzalloc() returns NULL
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions