* [PATCH] staging: keucr: Fix warning about missing blank lines after declarations
@ 2014-03-26 19:56 Jonas Hahnfeld
0 siblings, 0 replies; only message in thread
From: Jonas Hahnfeld @ 2014-03-26 19:56 UTC (permalink / raw)
To: acho, gregkh, rashika.kheria, peter.p.waskiewicz.jr, of82ecuq,
laura.lawniczak, amarjargal16, himangi774, devel, linux-kernel
Cc: Jonas Hahnfeld
This patches fixes two warnings of checkpatch.pl, both of the type
WARNING: Missing a blank line after declarations
Signed-off-by: Jonas Hahnfeld <hahnjo@hahnjo.de>
---
drivers/staging/keucr/smilsub.c | 1 +
drivers/staging/keucr/transport.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/staging/keucr/smilsub.c b/drivers/staging/keucr/smilsub.c
index 44ced82..e981f14 100644
--- a/drivers/staging/keucr/smilsub.c
+++ b/drivers/staging/keucr/smilsub.c
@@ -133,6 +133,7 @@ void Set_D_LogBlockAddr(u8 *redundant)
void Set_D_FailBlock(u8 *redundant)
{
char i;
+
for (i = 0; i < REDTSIZE; i++)
*redundant++ = (u8)((i == REDT_BLOCK) ? 0xF0 : 0xFF);
}
diff --git a/drivers/staging/keucr/transport.c b/drivers/staging/keucr/transport.c
index ae94147..5e59525 100644
--- a/drivers/staging/keucr/transport.c
+++ b/drivers/staging/keucr/transport.c
@@ -669,6 +669,7 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
/* R/W data */
if (transfer_length) {
unsigned int pipe;
+
if (srb->sc_data_direction == DMA_FROM_DEVICE)
pipe = us->recv_bulk_pipe;
else
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-26 19:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-26 19:56 [PATCH] staging: keucr: Fix warning about missing blank lines after declarations Jonas Hahnfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®