Skip to content

Commit

Permalink
PCI: exynos: Remove unnecessary return statement
Browse files Browse the repository at this point in the history
This patch fixes the following checkpatch warning:

  WARNING: void function return statements are not generally useful

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Jingoo Han authored and Bjorn Helgaas committed Nov 13, 2014
1 parent 70b3e89 commit bc512c5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/pci/host/pci-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ static void exynos_pcie_assert_reset(struct pcie_port *pp)
if (exynos_pcie->reset_gpio >= 0)
devm_gpio_request_one(pp->dev, exynos_pcie->reset_gpio,
GPIOF_OUT_INIT_HIGH, "RESET");
return;
}

static int exynos_pcie_establish_link(struct pcie_port *pp)
Expand Down Expand Up @@ -388,7 +387,6 @@ static void exynos_pcie_clear_irq_pulse(struct pcie_port *pp)

val = exynos_elb_readl(exynos_pcie, PCIE_IRQ_PULSE);
exynos_elb_writel(exynos_pcie, val, PCIE_IRQ_PULSE);
return;
}

static void exynos_pcie_enable_irq_pulse(struct pcie_port *pp)
Expand All @@ -400,7 +398,6 @@ static void exynos_pcie_enable_irq_pulse(struct pcie_port *pp)
val = IRQ_INTA_ASSERT | IRQ_INTB_ASSERT |
IRQ_INTC_ASSERT | IRQ_INTD_ASSERT,
exynos_elb_writel(exynos_pcie, val, PCIE_IRQ_EN_PULSE);
return;
}

static irqreturn_t exynos_pcie_irq_handler(int irq, void *arg)
Expand Down Expand Up @@ -429,7 +426,6 @@ static void exynos_pcie_msi_init(struct pcie_port *pp)
val = exynos_elb_readl(exynos_pcie, PCIE_IRQ_EN_LEVEL);
val |= IRQ_MSI_ENABLE;
exynos_elb_writel(exynos_pcie, val, PCIE_IRQ_EN_LEVEL);
return;
}

static void exynos_pcie_enable_interrupts(struct pcie_port *pp)
Expand All @@ -438,8 +434,6 @@ static void exynos_pcie_enable_interrupts(struct pcie_port *pp)

if (IS_ENABLED(CONFIG_PCI_MSI))
exynos_pcie_msi_init(pp);

return;
}

static inline void exynos_pcie_readl_rc(struct pcie_port *pp,
Expand All @@ -448,7 +442,6 @@ static inline void exynos_pcie_readl_rc(struct pcie_port *pp,
exynos_pcie_sideband_dbi_r_mode(pp, true);
*val = readl(dbi_base);
exynos_pcie_sideband_dbi_r_mode(pp, false);
return;
}

static inline void exynos_pcie_writel_rc(struct pcie_port *pp,
Expand All @@ -457,7 +450,6 @@ static inline void exynos_pcie_writel_rc(struct pcie_port *pp,
exynos_pcie_sideband_dbi_w_mode(pp, true);
writel(val, dbi_base);
exynos_pcie_sideband_dbi_w_mode(pp, false);
return;
}

static int exynos_pcie_rd_own_conf(struct pcie_port *pp, int where, int size,
Expand Down

0 comments on commit bc512c5

Please sign in to comment.