Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7eaa8c1f authored by Mayank Parashar's avatar Mayank Parashar Committed by Gerrit - the friendly Code Review server
Browse files

msm: driver: Camerav2: Correct return logic in subdev init



The code was always returing 0 irrespective of whether the
probe is successful or not. Correct it to return the rc
value which will return the proper return value in case of
probe success or failure.

Change-Id: I43cbb89d19875ccc16c6df9e1d5d6924b2e175d9
Signed-off-by: default avatarMayank Parashar <mayankp@codeaurora.org>
parent 2048a632
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -100,7 +100,7 @@ static int32_t msm_sensor_driver_cmd(struct msm_sensor_init_t *s_init,
static long msm_sensor_init_subdev_ioctl(struct v4l2_subdev *sd,
	unsigned int cmd, void *arg)
{
	int32_t rc = 0;
	long rc = 0;
	struct msm_sensor_init_t *s_init = v4l2_get_subdevdata(sd);
	CDBG("Enter");

@@ -120,7 +120,7 @@ static long msm_sensor_init_subdev_ioctl(struct v4l2_subdev *sd,
		break;
	}

	return 0;
	return rc;
}

#ifdef CONFIG_COMPAT