Skip to content

Commit 182b758

Browse files
Hongzhang YangHongzhang Yang
Hongzhang Yang
authored and
Hongzhang Yang
committed
MLK-11919 Check return value
Coverity reported: CID 17590 (#1 of 1): Unchecked return value (CHECKED_RETURN) 1. check_return: Calling device_reset without checking return value Fixed the warning by checking return value of device_reset. Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
1 parent dcb8298 commit 182b758

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/mxc/vpu/mxc_vpu.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2014 Freescale Semiconductor, Inc. All Rights Reserved.
2+
* Copyright 2006-2015 Freescale Semiconductor, Inc. All Rights Reserved.
33
*/
44

55
/*
@@ -175,7 +175,8 @@ static int cpu_is_mx6q(void)
175175
static void vpu_reset(void)
176176
{
177177
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
178-
device_reset(vpu_dev);
178+
if (device_reset(vpu_dev))
179+
dev_err(vpu_dev, "failed to reset vpu\n");
179180
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0)
180181
imx_src_reset_vpu();
181182
#else

0 commit comments

Comments
 (0)