commit | 148a97d5a02a62f81b5d6176f871c94a65e1f3af | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Apr 24 17:24:37 2019 +0300 |
committer | Christoph Hellwig <hch@lst.de> | Wed Apr 24 16:28:13 2019 +0200 |
tree | ff277737564f9c4331054c98d70055d9b0f8473a | |
parent | e43e2657fe77a37b13643e2469670ecdb0ba5e10 [diff] |
dma-mapping: remove an unnecessary NULL check We already dereferenced "dev" when we called get_dma_ops() so this NULL check is too late. We're not supposed to pass NULL "dev" pointers to dma_alloc_attrs(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>