]> git.baikalelectronics.ru Git - kernel.git/commit
GenWQE: Ensure rc is not returning an uninitialized value
authorColin Ian King <colin.king@canonical.com>
Thu, 20 Mar 2014 14:11:04 +0000 (15:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 19:12:39 +0000 (12:12 -0700)
commitd5c9705c97bb11aeb3c92774a7d9b27cfa3190ca
tree514f42f07a586bce0b2e0c106b9d934cd8853e3f
parentf2954e39786bf665b3350c1c268c061b988bf936
GenWQE: Ensure rc is not returning an uninitialized value

rc is not initialized, so genwqe_finish_queue() either returns -EIO or
garbage.  Fortunately the return is not being checked by any callers,
so this has not yet caused any problems. Even so, it makes sense to
fix this small bug in case is is checked in future.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/genwqe/card_ddcb.c