]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: remove an unecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Apr 2018 11:19:11 +0000 (14:19 +0300)
committerChristoph Hellwig <hch@lst.de>
Mon, 7 May 2018 05:15:41 +0000 (07:15 +0200)
commitdfa18313ef2649b0729e0f4d8c067081799161c4
treece79f626543b32aacf55bf7999894da1a01a0e25
parentc6d99a3e29224d9184838b21060d321298dd45cd
swiotlb: remove an unecessary NULL check

Smatch complains here:

    lib/swiotlb.c:730 swiotlb_alloc_buffer()
    warn: variable dereferenced before check 'dev' (see line 716)

"dev" isn't ever NULL in this function so we can just remove the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/swiotlb.c