summaryrefslogtreecommitdiff
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2019-06-08 13:01:02 -0700
committerChristoph Hellwig <hch@lst.de>2019-06-21 11:08:38 +0200
commite71afda49335620e3d9adf56015676db33a3bd86 (patch)
treecb5e6f384c7cd778deef138dc3156e62768e7702 /mm/oom_kill.c
parentdad77d63903e91a2e97a0c984cabe5d36e91ba60 (diff)
nvme-pci: set the errno on ctrl state change error
This patch removes the confusing assignment of the variable result at the time of declaration and sets the value in error cases next to the places where the actual error is happening. Here we also set the result value to -ENODEV when we fail at the final ctrl state transition in nvme_reset_work(). Without this assignment result will hold 0 from nvme_setup_io_queue() and on failure 0 will be passed to he nvme_remove_dead_ctrl() from final state transition. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions