diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-06 18:39:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-06 21:32:46 -0500 |
commit | 002f6f40c8e10547c2d2bc0e96de6d94ca1aa4dc (patch) | |
tree | a2c33207be182b5ab7c4c8b868cace97b201ba27 | |
parent | d1509c097f685472fb8c6b510ae8c8678499e53d (diff) |
rapidio: delete an unnecessary variable initialisation in three functions
The local variable "rc" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.
Link: http://lkml.kernel.org/r/ed729e8c-815c-8b56-a48f-1be579d0cc2b@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rapidio/rio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c index 90534365e46c..4604410fb001 100644 --- a/drivers/rapidio/rio.c +++ b/drivers/rapidio/rio.c | |||
@@ -441,7 +441,7 @@ int rio_request_inb_dbell(struct rio_mport *mport, | |||
441 | void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, | 441 | void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, |
442 | u16 dst, u16 info)) | 442 | u16 dst, u16 info)) |
443 | { | 443 | { |
444 | int rc = 0; | 444 | int rc; |
445 | struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); | 445 | struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); |
446 | 446 | ||
447 | if (res) { | 447 | if (res) { |
@@ -693,7 +693,7 @@ EXPORT_SYMBOL_GPL(rio_pw_enable); | |||
693 | int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local, | 693 | int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local, |
694 | u64 rbase, u32 size, u32 rflags) | 694 | u64 rbase, u32 size, u32 rflags) |
695 | { | 695 | { |
696 | int rc = 0; | 696 | int rc; |
697 | unsigned long flags; | 697 | unsigned long flags; |
698 | 698 | ||
699 | if (!mport->ops->map_inb) | 699 | if (!mport->ops->map_inb) |
@@ -737,7 +737,7 @@ EXPORT_SYMBOL_GPL(rio_unmap_inb_region); | |||
737 | int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, | 737 | int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, |
738 | u32 size, u32 rflags, dma_addr_t *local) | 738 | u32 size, u32 rflags, dma_addr_t *local) |
739 | { | 739 | { |
740 | int rc = 0; | 740 | int rc; |
741 | unsigned long flags; | 741 | unsigned long flags; |
742 | 742 | ||
743 | if (!mport->ops->map_outb) | 743 | if (!mport->ops->map_outb) |