All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: vc04_services: bcm2835-camera: Add blank line
@ 2018-03-01 18:26 Nishka Dasgupta
  2018-03-01 18:42 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Nishka Dasgupta @ 2018-03-01 18:26 UTC (permalink / raw)
  To: eric, stefan.wahren, gregkh, f.fainelli, rjui, sbranden,
	bcm-kernel-feedback-list, outreachy-kernel
  Cc: Nishka Dasgupta

Add blank line after variable declaration. Issue found with checkpatch.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
---
Changes in v2:
 - Format commit message.

 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
index e3460b7..c90754f 100644
--- a/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
+++ b/drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c
@@ -1979,6 +1979,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)
 	static VCHI_CONNECTION_T *vchi_connection;
 
 	static VCHI_INSTANCE_T vchi_instance;
+
 	SERVICE_CREATION_T params = {
 		.version		= VCHI_VERSION_EX(VC_MMAL_VER, VC_MMAL_MIN_VER),
 		.service_id		= VC_MMAL_SERVER_NAME,
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread
* Re: [Outreachy kernel] Re: Re: [PATCH] h [Patch] Fixed unnecessary typecasting to in. Error found with checkpatch. Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
@ 2018-02-27 13:39 Julia Lawall
  2018-02-27 13:53 ` Nishka Dasgupta
  0 siblings, 1 reply; 10+ messages in thread
From: Julia Lawall @ 2018-02-27 13:39 UTC (permalink / raw)
  To: Nishka Dasgupta; +Cc: outreachy-kernel



On Tue, 27 Feb 2018, Nishka Dasgupta wrote:

> Hi,
> Thank you for pointing out the formatting errors. I have deleted the unnecessary [Patch] and added the driver information.
> I could not, however, work out how to separate the subject line from the body of the text.
> I sent the commit to the maintainer of the patch in a separate email as I was (and am) not comfortable with git send-email, though I am doing my best to learn. I have sent him the revised patch, however.
> I don't know why a and b are prepended, unless you are referring to the variables that I added, in which case I would like to clarify that I did not want to use names as generic and vague as a and b for the new variables, so I appended part of their respective values after the initial character for ease of understanding. Should I have used more descriptive variable names?
> Finally, I did compile the this particular driver (make path/ as on the website) and an output file was generated for the modified file, so I took that to mean it was working as it should. Was I wrong?

I think that the code is actually better as is.  Normally, there are not
floating point numbers in kernel code, so it is nice to see the int cast,
and to see what the numbers are being used for.  Checkpatch is not always
correct...

julia


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-03-08 18:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 18:26 [PATCH v2] staging: vc04_services: bcm2835-camera: Add blank line Nishka Dasgupta
2018-03-01 18:42 ` Greg KH
2018-03-01 19:15   ` Nishka Dasgupta
2018-03-01 19:33     ` Greg KH
2018-03-01 20:20       ` Nishka Dasgupta
2018-03-01 20:29         ` [Outreachy kernel] Re: Julia Lawall
2018-03-01 20:31         ` Re: Greg KH
2018-03-08 18:23           ` Re: Nishka Dasgupta
2018-03-08 18:33             ` Re: Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2018-02-27 13:39 [Outreachy kernel] Re: Re: [PATCH] h [Patch] Fixed unnecessary typecasting to in. Error found with checkpatch. Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in> Julia Lawall
2018-02-27 13:53 ` Nishka Dasgupta
2018-02-27 13:58   ` [Outreachy kernel] Re: Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.