]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: most: return NULL instead of integer
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 4 Sep 2015 10:52:03 +0000 (16:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:43 +0000 (18:24 -0700)
The return type of get_aim_dev() is a pointer but we were returning 0
incase of failure.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-v4l2/video.c

index d9687910e4a4138052d8a67721e76bf644d0a804..83332454974ce4a2ee2f2b2ba8f8a9090d8c93ed 100644 (file)
@@ -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)