From: Greg Kroah-Hartman Date: Fri, 15 Jan 2016 22:41:02 +0000 (-0800) Subject: greybus: Revert "camera: Fix backword compatibility in configure streams" X-Git-Tag: v4.9.8~1233^2~378^2~21^2~817 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b55d9431d62d6ce762d4b50ec93bbb81dce783c6;p=platform%2Fkernel%2Flinux-rpi3.git greybus: Revert "camera: Fix backword compatibility in configure streams" This reverts commit 48cc91e52dba9abad4c9b56f911994c65071bfc4 as the caller should be changed instead. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index 8b21433..deb55da 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -352,8 +352,6 @@ static int gb_camera_op_configure_streams(void *priv, unsigned int nstreams, streams[i].pixel_code = gb_camera_gb_to_mbus(gb_streams[i].format); } - /* For backward compatibility return number of streams in ret code */ - ret = nstreams; done: kfree(gb_streams);