vhost: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
authorPei Xiao <xiaopei01@kylinos.cn>
Wed, 4 Jun 2025 06:55:48 +0000 (14:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Aug 2025 13:11:08 +0000 (09:11 -0400)
commit32d89a405adc204d82bea6ae2ba27a62d35568b4
treefe0d7575713503a2b281b011363784014f44417b
parentc0883c1af14c5d351201ace00b1a46df2b157329
vhost: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

cocci warning:
./kernel/vhost_task.c:148:9-16: WARNING: ERR_CAST can be used with tsk

Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Message-Id: <1a8499a5da53e4f72cf21aca044ae4b26db8b2ad.1749020055.git.xiaopei01@kylinos.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
kernel/vhost_task.c