Skip to contentSkip to conversation

mmc: sdhci-s3c: fix checkpatch error and warning

PATCH New Jingoo Han 1 participant 1 message Dec 14, 2011

Subsystems (3)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 mmc: sdhci-s3c: fix checkpatch error and warning

This patch fixes the checkpatch error and warning listed below:

ERROR: return is not a function, parentheses are not required
WARNING: line over 80 characters

---
 drivers/mmc/host/sdhci-s3c.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci-s3c.c +3 -2
index cb60c41..9d75aaa 100644
@@ -150,7 +150,7 @@ static unsigned int sdhci_s3c_consider_clock(struct sdhci_s3c *ourhost,
 	dev_dbg(&ourhost->pdev->dev, "clk %d: rate %ld, want %d, got %ld\n",
 		src, rate, wanted, rate / div);
 
-	return (wanted - (rate / div));
+	return wanted - (rate / div);
 }
 
 /**
@@ -367,7 +367,8 @@ static void sdhci_s3c_setup_card_detect_gpio(struct sdhci_s3c *sc)
 		if (sc->ext_cd_irq &&
 		    request_threaded_irq(sc->ext_cd_irq, NULL,
 					 sdhci_s3c_gpio_card_detect_thread,
-					 IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
+					 IRQF_TRIGGER_RISING |
+					 IRQF_TRIGGER_FALLING,
 					 dev_name(dev), sc) == 0) {
 			int status = gpio_get_value(sc->ext_cd_gpio);
 			if (pdata->ext_cd_gpio_invert)
Signature · 1 line
1.7.1