Commit 278cc35d authored by Martiros Shakhzadyan's avatar Martiros Shakhzadyan Committed by Mauro Carvalho Chehab
Browse files

media: atomisp: i2c: Remove a superfluous else clause in atomisp-mt9m114.c

parent 70d4ac6f
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -570,15 +570,14 @@ static int power_down(struct v4l2_subdev *sd)

static int mt9m114_s_power(struct v4l2_subdev *sd, int power)
{
	if (power == 0) {
	if (power == 0)
		return power_down(sd);
	} else {

	if (power_up(sd))
		return -EINVAL;

	return mt9m114_init_common(sd);
}
}

/*
 * distance - calculate the distance