Skip to content

Commit

Permalink
rapidio: delete an unnecessary variable initialisation in three funct…
Browse files Browse the repository at this point in the history
…ions

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/[email protected]
Signed-off-by: Markus Elfring <[email protected]>
Acked-by: Alexandre Bounine <[email protected]>
Cc: Matt Porter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
elfring authored and torvalds committed Feb 7, 2018
1 parent d1509c0 commit 002f6f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/rapidio/rio.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ int rio_request_inb_dbell(struct rio_mport *mport,
void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src,
u16 dst, u16 info))
{
int rc = 0;
int rc;
struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);

if (res) {
Expand Down Expand Up @@ -693,7 +693,7 @@ EXPORT_SYMBOL_GPL(rio_pw_enable);
int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
u64 rbase, u32 size, u32 rflags)
{
int rc = 0;
int rc;
unsigned long flags;

if (!mport->ops->map_inb)
Expand Down Expand Up @@ -737,7 +737,7 @@ EXPORT_SYMBOL_GPL(rio_unmap_inb_region);
int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase,
u32 size, u32 rflags, dma_addr_t *local)
{
int rc = 0;
int rc;
unsigned long flags;

if (!mport->ops->map_outb)
Expand Down

0 comments on commit 002f6f4

Please sign in to comment.