greybus: Revert "camera: Fix backword compatibility in configure streams"
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 15 Jan 2016 22:41:02 +0000 (14:41 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 15 Jan 2016 22:41:02 +0000 (14:41 -0800)
This reverts commit 48cc91e52dba9abad4c9b56f911994c65071bfc4 as the
caller should be changed instead.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c

index 8b214337c4f9647da18fb9b96568d1d1428e9c5f..deb55da9032e8b317c924f7fa1375cf3a3c661a4 100644 (file)
@@ -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);