* [PATCH] Staging: media: Add blank line after declarations
@ 2015-02-27 10:55 Dilek Uzulmez
2015-03-01 23:06 ` [Outreachy kernel] " Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Dilek Uzulmez @ 2015-02-27 10:55 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Dilek Uzulmez
The following patch fixes the checkpatch.pl warning:
drivers/staging/media/parport/bw-qcam.c WARNING: Missing a blank
line after declarations
Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
---
drivers/staging/media/parport/bw-qcam.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/staging/media/parport/bw-qcam.c b/drivers/staging/media/parport/bw-qcam.c
index 67b9da1..7f42b4b 100644
--- a/drivers/staging/media/parport/bw-qcam.c
+++ b/drivers/staging/media/parport/bw-qcam.c
@@ -601,6 +601,7 @@ static long qc_capture(struct qcam *q, u8 *buf, unsigned long len)
bytes = qc_readbytes(q, buffer);
for (k = 0; k < bytes && (pixels_read + k) < pixels_per_line; k++) {
int o;
+
if (buffer[k] == 0 && invert == 16) {
/* 4bpp is odd (again) -- inverter is 16, not 15, but output
must be 0-15 -- bls */
@@ -609,6 +610,7 @@ static long qc_capture(struct qcam *q, u8 *buf, unsigned long len)
o = i * pixels_per_line + pixels_read + k;
if (o < len) {
u8 ch = invert - buffer[k];
+
got++;
buf[o] = ch << shift;
}
@@ -1108,6 +1110,7 @@ static int accept_bwqcam(struct parport *port)
for (n = 0; n < MAX_CAMS && parport[n]; n++) {
char *ep;
unsigned long r;
+
r = simple_strtoul(parport[n], &ep, 0);
if (ep == parport[n]) {
printk(KERN_ERR
@@ -1133,8 +1136,10 @@ static void bwqcam_attach(struct parport *port)
static void bwqcam_detach(struct parport *port)
{
int i;
+
for (i = 0; i < num_cams; i++) {
struct qcam *qcam = qcams[i];
+
if (qcam && qcam->pdev->port == port) {
qcams[i] = NULL;
close_bwqcam(qcam);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Outreachy kernel] [PATCH] Staging: media: Add blank line after declarations
2015-02-27 10:55 [PATCH] Staging: media: Add blank line after declarations Dilek Uzulmez
@ 2015-03-01 23:06 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2015-03-01 23:06 UTC (permalink / raw)
To: Dilek Uzulmez; +Cc: outreachy-kernel
On Fri, Feb 27, 2015 at 12:55:27PM +0200, Dilek Uzulmez wrote:
> The following patch fixes the checkpatch.pl warning:
> drivers/staging/media/parport/bw-qcam.c WARNING: Missing a blank
> line after declarations
>
> Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
> ---
> drivers/staging/media/parport/bw-qcam.c | 5 +++++
> 1 file changed, 5 insertions(+)
You sent 3 patches with the same subject, yet they did different things,
how am I supposed to know what to do here?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-01 23:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 10:55 [PATCH] Staging: media: Add blank line after declarations Dilek Uzulmez
2015-03-01 23:06 ` [Outreachy kernel] " Greg KH
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.