Commit 32d89a40 authored by Pei Xiao's avatar Pei Xiao Committed by Michael S. Tsirkin
Browse files

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: default avatarPei Xiao <xiaopei01@kylinos.cn>
Message-Id: <1a8499a5da53e4f72cf21aca044ae4b26db8b2ad.1749020055.git.xiaopei01@kylinos.cn>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent c0883c1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment