Re: [PATCH] vhost: vdpa: remove unnecessary null check

2020-03-31 Thread Michael S. Tsirkin
On Mon, Mar 30, 2020 at 06:50:40PM -0500, Gustavo A. R. Silva wrote: > container_of is never null, so this null check is > unnecessary. > > Addresses-Coverity-ID: 1492006 ("Logically dead code") > Fixes: 20453a45fb06 ("vhost: introduce vDPA-based backend") > Signed-off-by: Gustavo A. R. Silva

Re: [PATCH] vhost: vdpa: remove unnecessary null check

2020-03-30 Thread Jason Wang
On 2020/3/31 上午7:50, Gustavo A. R. Silva wrote: container_of is never null, so this null check is unnecessary. Addresses-Coverity-ID: 1492006 ("Logically dead code") Fixes: 20453a45fb06 ("vhost: introduce vDPA-based backend") Signed-off-by: Gustavo A. R. Silva --- drivers/vhost/vdpa.c | 2

[PATCH] vhost: vdpa: remove unnecessary null check

2020-03-30 Thread Gustavo A. R. Silva
container_of is never null, so this null check is unnecessary. Addresses-Coverity-ID: 1492006 ("Logically dead code") Fixes: 20453a45fb06 ("vhost: introduce vDPA-based backend") Signed-off-by: Gustavo A. R. Silva --- drivers/vhost/vdpa.c | 2 -- 1 file changed, 2 deletions(-) diff --git