Skip to contentSkip to conversation

staging: mt7621-mmc: Add blank line after declaration

PATCH In review [email protected] 2 participants 2 messages Nov 7, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: mt7621-mmc: Add blank line after declaration

From: Nícolas F. R. A. Prado <[email protected]>

Correct the following warning from checkpatch.pl:

WARNING: Missing a blank line after declarations
+ struct msdc_host *host = mmc_priv(mmc);
+ msdc_pm(state, (void *)host);

---

Hi, this is my first commit. Let me know if there's anything I can do better.

---
 drivers/staging/mt7621-mmc/sd.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/mt7621-mmc/sd.c +1 -0
index 0379f9c96..7b66f9b0a 100644
@@ -1797,6 +1797,7 @@ static void msdc_drv_pm(struct platform_device *pdev, pm_message_t state)
 
 	if (mmc) {
 		struct msdc_host *host = mmc_priv(mmc);
+
 		msdc_pm(state, (void *)host);
 	}
 }
Signature · 1 line
2.19.1
maintainer
#1 lore raw
Quoted 23 lines · On Tue, Nov 06, 2018 at 10:42:42PM -0200, [email protected] wrote:

From: Nícolas F. R. A. Prado <[email protected]>

Correct the following warning from checkpatch.pl:

WARNING: Missing a blank line after declarations

(quoted diff) +2 -0
+		struct msdc_host *host = mmc_priv(mmc);
+		msdc_pm(state, (void *)host);

---

Hi, this is my first commit. Let me know if there's anything I can do better.

---
 drivers/staging/mt7621-mmc/sd.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/mt7621-mmc/sd.c +0 -0
index 0379f9c96..7b66f9b0a 100644

drivers/staging/mt7621-mmc/sd.c static void msdc_drv_pm(struct platform_device *pdev, pm_message_t state) · line 1802

Quoted 6 lines
drivers/staging/mt7621-mmc/sd.c +1 -0
@@ -1797,6 +1797,7 @@ static void msdc_drv_pm(struct platform_device *pdev, pm_message_t state)
 
 	if (mmc) {
 		struct msdc_host *host = mmc_priv(mmc);
+
 		msdc_pm(state, (void *)host);
 	}

This patch is fine, and I'll take it, but can't this be written a lot simpler:

	if (mmc)
		msdc_pm(state, mmc_priv(mmc));

that looks better, don't you think?

thanks,

greg k-h