summaryrefslogtreecommitdiff
path: root/include/linux/posix-clock.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-11-23 09:54:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:11:40 +0200
commit6091936487a95791e24019ad949d11c661700205 (patch)
tree72ac2c0e45ae5c8220b5e8e4b60c8ba0243a5c8c /include/linux/posix-clock.h
parentd79d7d5c878809964da537336dad5ff55fa1605e (diff)
ptp: Fix pass zero to ERR_PTR() in ptp_clock_register
commit aea0a897af9e44c258e8ab9296fad417f1bc063a upstream. Fix smatch warning: drivers/ptp/ptp_clock.c:298 ptp_clock_register() warn: passing zero to 'ERR_PTR' 'err' should be set while device_create_with_groups and pps_register_source fails Fixes: 85a66e550195 ("ptp: create "pins" together with the rest of attributes") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/posix-clock.h')
0 files changed, 0 insertions, 0 deletions