mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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 <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b0183053e3
commit
9b532df0fc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user