dmaengine: idxd: Fix missing error code in idxd_cdev_open()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 2 Jun 2021 10:07:26 +0000 (18:07 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Jun 2021 06:58:37 +0000 (12:28 +0530)
commit99b18e88a1cf737ae924123d63b46d9a3d17b1af
treeebb091f1b510d96bf9589cdcb48d955df7ed5acf
parentfffdaba402cea79b8d219355487d342ec23f91c6
dmaengine: idxd: Fix missing error code in idxd_cdev_open()

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'rc'.

Eliminate the follow smatch warning:

drivers/dma/idxd/cdev.c:113 idxd_cdev_open() warn: missing error code
'rc'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/1622628446-87909-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/cdev.c