Skip to contentSkip to conversation

staging: greybus: Remove parentheses around variable

PATCH In review Nishka Dasgupta 4 participants 7 messages Mar 19, 2019 – Mar 20, 2019

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

PATCH 1/1 staging: greybus: Remove parentheses around variable

Remove parentheses around variable.

---
 drivers/staging/greybus/bundle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/bundle.c +1 -1
index 376ca53f0d83..3f702db9e098 100644
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
 {
 	struct gb_bundle *bundle = to_gb_bundle(dev);
 
-	if (!(bundle->state))
+	if (!bundle->state)
 		return sprintf(buf, "\n");
 
 	return sprintf(buf, "%s\n", bundle->state);
Signature · 1 line
2.19.1
#1 lore raw

This didn't arrive with a From line that corresponds to your SOB. You may need to put From: Nishka Dasgupta <[email protected]> at the beginning of your log message (after the subject line) if you aren't able to have the message come through with a proper From line.

julia

Quoted 30 lines · Nishka Dasgupta' via outreachy-kernel

Remove parentheses around variable.

---
 drivers/staging/greybus/bundle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/bundle.c +1 -2
index 376ca53f0d83..3f702db9e098 100644
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
 {
 	struct gb_bundle *bundle = to_gb_bundle(dev);
 
-	if (!(bundle->state))
+	if (!bundle->state)
 		return sprintf(buf, "\n");
 
 	return sprintf(buf, "%s\n", bundle->state);
--

2.19.1

--
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/20190319200308.10710-1-nishka.dasgupta%40yahoo.com.
For more options, visit https://groups.google.com/d/optout.

maintainer
#2 lore raw
Quoted 4 lines · Julia Lawall

This didn't arrive with a From line that corresponds to your SOB. You may need to put From: Nishka Dasgupta <[email protected]> at the beginning of your log message (after the subject line) if you aren't able to have the message come through with a proper From line.

Odd, it looks correct to me.

And you are top-posting :)

thanks,

greg k-h

#3 lore raw
Quoted 9 lines · Greg KH
Quoted 4 lines · Julia Lawall

This didn't arrive with a From line that corresponds to your SOB. You may need to put From: Nishka Dasgupta <[email protected]> at the beginning of your log message (after the subject line) if you aren't able to have the message come through with a proper From line.

Odd, it looks correct to me.

And you are top-posting :)

Well, I'm complaining about the From line in the message, that is above my comment :)

I guess that if Nishka has you explicitly in the CC list, you get a message that looks fine. The problem is with the ones that come through the mailing list.

julia

Quoted 12 lines

thanks,

greg k-h

--
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/20190320064724.GA11556%40kroah.com.
For more options, visit https://groups.google.com/d/optout.

maintainer Acked-by on v1 1/1
#4 lore raw
In reply to Nishka Dasgupta
Quoted 1 line · Nishka Dasgupta

Remove parentheses around variable.

Perhaps

Remove unnecessary parentheses around expression.

would be more accurate.

Quoted 1 line

But no need to resend unless you want to. If you do, you can add my ack before your SoB-tag:

Quoted 9 lines
---
 drivers/staging/greybus/bundle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/bundle.c +0 -0
index 376ca53f0d83..3f702db9e098 100644

drivers/staging/greybus/bundle.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, · line 38

Quoted 8 lines
drivers/staging/greybus/bundle.c +1 -1
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
 {
 	struct gb_bundle *bundle = to_gb_bundle(dev);
 
-	if (!(bundle->state))
+	if (!bundle->state)
 		return sprintf(buf, "\n");
 
 	return sprintf(buf, "%s\n", bundle->state);

Thanks,
Johan

#5 lore raw
Quoted 7 lines · Johan Hovold
Quoted 1 line · Nishka Dasgupta

Remove parentheses around variable.

Perhaps

Remove unnecessary parentheses around expression.

Quoted 8 lines

would be more accurate.

Quoted 1 line

But no need to resend unless you want to. If you do, you can add my ack before your SoB-tag:

I would like to resend but I think this patch has already been added to staging-next, so I don't think I should send it again. I could if it's alright. Thank you for your initial suggestion though, and I'm sorry I wasn't sure about how to acknowledge your help in the patch itself.

Thanking you,
Nishka Dasgupta

Quoted 21 lines
Quoted 9 lines
---
  drivers/staging/greybus/bundle.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/bundle.c +0 -0
index 376ca53f0d83..3f702db9e098 100644

drivers/staging/greybus/bundle.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, · line 38

Quoted 8 lines
drivers/staging/greybus/bundle.c +1 -1
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
  {
  	struct gb_bundle *bundle = to_gb_bundle(dev);
 
-	if (!(bundle->state))
+	if (!bundle->state)
  		return sprintf(buf, "\n");
 
  	return sprintf(buf, "%s\n", bundle->state);

Thanks,
Johan

maintainer
#6 lore raw
Quoted 14 lines · NIshka Dasgupta
Quoted 11 lines · Johan Hovold
Quoted 1 line · Nishka Dasgupta

Remove parentheses around variable.

Perhaps

Remove unnecessary parentheses around expression.

would be more accurate.

Quoted 1 line
Quoted 8 lines
Quoted 4 lines

But no need to resend unless you want to. If you do, you can add my ack before your SoB-tag:

I would like to resend but I think this patch has already been added to staging-next, so I don't think I should send it again. I could if it's alright.

Greg's trees are generally immutable so once a patch has been applied (and passed some initial testing) it cannot be replaced and the corresponding code can only be fixed incrementally.

So no need to resend.

Quoted 2 lines

Thank you for your initial suggestion though, and I'm sorry I wasn't sure about how to acknowledge your help in the patch itself.

No worries at all. And there's no need to give credit for minor review feedback; reviewers may still provide their Reviewed-by or Acked-by tags once they're happy with the patch though.

Thanks,
Johan