staging: erofs: Modify conditional check.
PATCH 1/1 staging: erofs: Modify conditional check.
This patch includes modified condition to check for bio struct.
--- drivers/staging/erofs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/erofs/data.c +1 -1
@@ -240,7 +240,7 @@ static inline struct bio *erofs_read_raw_page( bio =NULL ; } -if (bio ==NULL ) { +if (!bio) {struct erofs_map_blocks map = { .m_la =blknr_to_addr (current_block), };
Signature · 1 line
2.7.4
PATCH 1/1 staging: erofs: Modify conditional check.
Quoted 1 line · Bhagyashri P. Dighole
This patch includes modified condition to check for bio struct.
The commit message is sort of wordy and imprecise. Don't say "This patch includes". The commit log message should be in the imperative. That is, it should start with a verb. Here, the first word could perhaps be Modify. Afterwards, you should explain what was done and why. Here you could say "Use ! for a NULL test rather than explicitly comparing to NULL, to be more concise and readable". Then, if you came across this issue due to checkpatch, it would be nice to acknowledge that - Issue found using checkpatch.
Finally, if you are going to send the other changes then they all need to be in a series. On the other hand, for your first patch, it is fine to only send this change. But in that case you have to work on something else until Greg picks this up. If there are multiple changes on one file, he needs the series number to know in what order to apply them.
julia
Quoted 29 lines
Signed-off-by Bhagyashri P. Dighole <digholebhagyashri at gmail.com>--- drivers/staging/erofs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/erofs/data.c +1
-2@@ -240,7 +240,7 @@ static inline struct bio *erofs_read_raw_page( bio =NULL ; } -if (bio ==NULL ) { +if (!bio) {struct erofs_map_blocks map = { .m_la =blknr_to_addr (current_block), }; --2.7.4
--
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 outreachy-kernel+unsubscribe at googlegroups.com. To post to this group, send email to outreachy-kernel at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20181104195701.GA18201%40bhagyashri-Lenovo-G570.
For more options, visit https://groups.google.com/d/optout.
PATCH 1/1 staging: erofs: Modify conditional check.
Thanks Julia, I will update commit log message for patch and add version for patch. I will also add series number if there are multiple changes on the same file.
Bhagyashri
Quoted 48 lines · Julia Lawall
Quoted 1 line · Bhagyashri P. Dighole
This patch includes modified condition to check for bio struct.
The commit message is sort of wordy and imprecise. Don't say "This patch includes". The commit log message should be in the imperative. That is, it should start with a verb. Here, the first word could perhaps be Modify. Afterwards, you should explain what was done and why. Here you could say "Use ! for a NULL test rather than explicitly comparing to NULL, to be more concise and readable". Then, if you came across this issue due to checkpatch, it would be nice to acknowledge that - Issue found using checkpatch.
Finally, if you are going to send the other changes then they all need to be in a series. On the other hand, for your first patch, it is fine to only send this change. But in that case you have to work on something else until Greg picks this up. If there are multiple changes on one file, he needs the series number to know in what order to apply them.
julia
Quoted 22 lines
Signed-off-by Bhagyashri P. Dighole <digholebhagyashri at gmail.com>--- drivers/staging/erofs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/erofs/data.c +1
-2@@ -240,7 +240,7 @@ static inline struct bio *erofs_read_raw_page( bio =NULL ; } -if (bio ==NULL ) { +if (!bio) {struct erofs_map_blocks map = { .m_la =blknr_to_addr (current_block), }; --2.7.4
Quoted 2 lines
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 9 lines
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to outreachy-kernel+unsubscribe at googlegroups.com.
Quoted 2 lines
To post to this group, send email to outreachy-kernel at googlegroups.com. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/20181104195701.GA18201%40bhagyashri-Lenovo-G570
.Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20181105/02cba1c2/attachment.html>