From: Sudip Mukherjee Date: Fri, 4 Sep 2015 10:52:03 +0000 (+0530) Subject: staging: most: return NULL instead of integer X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b532df0fc1eb0834261d9cfbeef0f346c817d7f;p=openwrt%2Fstaging%2Fblogic.git staging: most: return NULL instead of integer The return type of get_aim_dev() is a pointer but we were returning 0 incase of failure. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index d9687910e4a4..83332454974c 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -430,7 +430,7 @@ static struct most_video_dev *get_aim_dev( } } spin_unlock(&list_lock); - return 0; + return NULL; } static int aim_rx_data(struct mbo *mbo)