Skip to content
Snippets Groups Projects
Commit 3b1ad360 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

pps: using ERR_PTR instead of NULL while pps_register_source fails


pps_register_source() has keeps error codes in a local variable,
but it does not make use of the code. This patch let it return
the errcode in case of failure.

Suggested-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarRodolfo Giometti <giometti@enneenne.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb30abee
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment