diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-05-13 16:47:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 20:43:12 -0400 |
commit | 63fa80cd582321693474f9cf9203329a2f8a8494 (patch) | |
tree | 096273c86f492f64d125ea1cd0aba54c629f34d2 /drivers/misc | |
parent | f82dd4b093ead1161770de70515cb11602ac664c (diff) |
misc: genwqe: fix uninitialized return value in genwqe_free_sync_sgl()
Function genwqe_free_sync_sgl() returns the value of variable 'rc'. 'rc' is
only set in the error paths, thus initialize it by 0. Coverity CID 1204242.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/genwqe/card_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe/card_utils.c index d049d271699c..5babf4013f4b 100644 --- a/drivers/misc/genwqe/card_utils.c +++ b/drivers/misc/genwqe/card_utils.c | |||
@@ -454,7 +454,7 @@ int genwqe_setup_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl, | |||
454 | */ | 454 | */ |
455 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) | 455 | int genwqe_free_sync_sgl(struct genwqe_dev *cd, struct genwqe_sgl *sgl) |
456 | { | 456 | { |
457 | int rc; | 457 | int rc = 0; |
458 | struct pci_dev *pci_dev = cd->pci_dev; | 458 | struct pci_dev *pci_dev = cd->pci_dev; |
459 | 459 | ||
460 | if (sgl->fpage) { | 460 | if (sgl->fpage) { |