Fix error code to correct pointer type
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 12:10:46 +0000 (17:10 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 29 Jul 2016 14:30:25 +0000 (07:30 -0700)
commit57736d8f3fd6c890a660c7df8733a57195ec1d40
tree9a619b1306ac4b5599dabda976a3d0e3be970219
parent832488e06e0fa348e5377196e77a8923ff6e7bbd
Fix error code to correct pointer type

To return an errno code inside a pointer,
the error code must first be converted to
the correct pointer type.

drivers/media/v4l2-core/v4l2-of.c:
In function 'v4l2_of_alloc_parse_endpoint':
drivers/media/v4l2-core/v4l2-of.c:227:10: warning:
return makes pointer from integer without
a cast [-Wint-conversion]
return -ENOMEM;

drivers/media/v4l2-core/v4l2-of.c:254:9: warning:
return makes pointer from integer without
a cast [-Wint-conversion]
return rval;

Bug 200187768

Change-Id: I757fe1f51559a0d0cda7463fd5541fac20e3a92e
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163930
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/media/v4l2-core/v4l2-of.c