Skip to contentSkip to conversation

staging: octeon: Removing multiple blank lines

PATCH Superseded Gargi Sharma 2 participants 4 messages Sep 13, 2016 Staging

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: octeon: Removing multiple blank lines

Fixes the checkpatch issue Please don't use multiple blank lines.

---
 drivers/staging/octeon/ethernet.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/octeon/ethernet.c +0 -2
index 0bd5c18..ec8e424 100644
@@ -686,7 +686,6 @@ static int cvm_oct_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-
 	cvm_oct_configure_common_hw();
 
 	cvmx_helper_initialize_packet_io_global();
@@ -929,7 +928,6 @@ static int cvm_oct_remove(struct platform_device *pdev)
 		}
 	}
 
-
 	cvmx_pko_shutdown();
 
 	cvmx_ipd_free_ptr();
Signature · 1 line
2.9.2
#1 lore raw
Quoted 1 line · Gargi Sharma

Fixes the checkpatch issue Please don't use multiple blank lines.

Hi Gargi,
Just a couple of minor format comments, but you may as well v2 this to get it looking it's best in the git history.

Typically the commit message is written in the imperative format. That would be 'Remove' instead of 'Removing'. It's really not necessary to become a grammar expert ;) just do a git pretty and verify that your commit message is in the same style as the others on the file you are changing:

git log --pretty=oneline --abbrev-commit <filename>

Within the changelog you can just cut/paste the checkpatch message, as in: CHECK: Please don't use multiple blank lines. (Also tells CHECK or WARNING)

Quoted 1 line

Fixes the checkpatch issue:

CHECK: Please don't use multiple blank lines

Really minor stuff, but it keeps the uniformity which is nice.

alisons

alisons

Quoted 35 lines
---
 drivers/staging/octeon/ethernet.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/octeon/ethernet.c +0 -2
index 0bd5c18..ec8e424 100644
@@ -686,7 +686,6 @@ static int cvm_oct_probe(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-
 	cvm_oct_configure_common_hw();
 
 	cvmx_helper_initialize_packet_io_global();
@@ -929,7 +928,6 @@ static int cvm_oct_remove(struct platform_device *pdev)
 		}
 	}
 
-
 	cvmx_pko_shutdown();
 
 	cvmx_ipd_free_ptr();
Signature · 8 lines
2.9.2

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160913160213.12708-1-gs051095%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw

Hi Alison!

Quoted 7 lines · Alison Schofield
Quoted 1 line · Gargi Sharma

Fixes the checkpatch issue Please don't use multiple blank lines.

Hi Gargi,
Just a couple of minor format comments, but you may as well v2 this to get it looking it's best in the git history.

Should the v2 have a message stating that I fixed the commit message or the original commit message?

gargi

Quoted 26 lines

Typically the commit message is written in the imperative format. That would be 'Remove' instead of 'Removing'. It's really not necessary to become a grammar expert ;) just do a git pretty and verify that your commit message is in the same style as the others on the file you are changing:

git log --pretty=oneline --abbrev-commit <filename>

Within the changelog you can just cut/paste the checkpatch message, as in: CHECK: Please don't use multiple blank lines. (Also tells CHECK or WARNING)

Quoted 1 line

Fixes the checkpatch issue:

CHECK: Please don't use multiple blank lines

Really minor stuff, but it keeps the uniformity which is nice.

alisons

alisons

Quoted 1 line
Quoted 6 lines

Review

Quoted 6 lines
---
 drivers/staging/octeon/ethernet.c | 2 --
 1 file changed, 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/octeon/ethernet.c

Quoted 4 lines

drivers/staging/octeon/ethernet.c static int cvm_oct_probe(struct platform_device

Quoted 4 lines

index 0bd5c18..ec8e424 100644

drivers/staging/octeon/ethernet.c +0 -0
@@ -686,7 +686,6 @@ static int cvm_oct_probe(struct platform_device

*pdev)

Quoted 8 lines

drivers/staging/octeon/ethernet.c static int cvm_oct_remove(struct platform_device

Quoted 8 lines
drivers/staging/octeon/ethernet.c +0 -1
              return -EINVAL;
      }
 
-
      cvm_oct_configure_common_hw();
 
      cvmx_helper_initialize_packet_io_global();
@@ -929,7 +928,6 @@ static int cvm_oct_remove(struct platform_device

*pdev)

Quoted 6 lines
Quoted 6 lines
drivers/staging/octeon/ethernet.c +0 -1
              }
      }
 
-
      cvmx_pko_shutdown();
 
Quoted 6 lines
Quoted 6 lines
drivers/staging/octeon/ethernet.c +0 -1
      cvmx_ipd_free_ptr();
--

2.9.2

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line
Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines
Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/20160913160213.12708-1-gs051095%40gmail.com
.

Quoted 4 lines
Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups

"outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send an

email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/20160913184643.GA3351%40d830.WORKGROUP
.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 7 lines · Gargi Sharma

Hi Alison!

Quoted 4 lines · Alison Schofield
Quoted 1 line · Gargi Sharma

Fixes the checkpatch issue Please don't use multiple blank lines.

Quoted 8 lines
Quoted 3 lines

Hi Gargi,
Just a couple of minor format comments, but you may as well v2 this to get it looking it's best in the git history.

Should the v2 have a message stating that I fixed the commit message or the original commit message?

gargi

There is a section in the first patch tutorial for this. See "Versioning one patch revision"

alisons

Quoted 78 lines
Quoted 26 lines

Typically the commit message is written in the imperative format. That would be 'Remove' instead of 'Removing'. It's really not necessary to become a grammar expert ;) just do a git pretty and verify that your commit message is in the same style as the others on the file you are changing:

git log --pretty=oneline --abbrev-commit <filename>

Within the changelog you can just cut/paste the checkpatch message, as in: CHECK: Please don't use multiple blank lines. (Also tells CHECK or WARNING)

Quoted 1 line

Fixes the checkpatch issue:

CHECK: Please don't use multiple blank lines

Really minor stuff, but it keeps the uniformity which is nice.

alisons

alisons

Quoted 1 line
Quoted 6 lines

Review

Quoted 6 lines
---
 drivers/staging/octeon/ethernet.c | 2 --
 1 file changed, 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/octeon/ethernet.c

Quoted 4 lines

drivers/staging/octeon/ethernet.c static int cvm_oct_probe(struct platform_device

Quoted 4 lines

index 0bd5c18..ec8e424 100644

drivers/staging/octeon/ethernet.c +0 -0
@@ -686,7 +686,6 @@ static int cvm_oct_probe(struct platform_device

*pdev)

Quoted 8 lines

drivers/staging/octeon/ethernet.c static int cvm_oct_remove(struct platform_device

Quoted 8 lines
drivers/staging/octeon/ethernet.c +0 -1
              return -EINVAL;
      }
 
-
      cvm_oct_configure_common_hw();
 
      cvmx_helper_initialize_packet_io_global();
@@ -929,7 +928,6 @@ static int cvm_oct_remove(struct platform_device

*pdev)

Quoted 6 lines
Quoted 6 lines
drivers/staging/octeon/ethernet.c +0 -1
              }
      }
 
-
      cvmx_pko_shutdown();
 
Quoted 6 lines
Quoted 6 lines
drivers/staging/octeon/ethernet.c +0 -1
      cvmx_ipd_free_ptr();
--

2.9.2

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line
Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines
Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/20160913160213.12708-1-gs051095%40gmail.com
.

Quoted 4 lines
Quoted 1 line

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups

"outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send an

email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/20160913184643.GA3351%40d830.WORKGROUP
.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.