linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] virtio_scsi: blank line after declaration cleanup
@ 2014-04-28  6:31 Jerry Snitselaar
  2014-04-28  6:31 ` [PATCH 2/2] virtio_scsi: space required before open parenthesis Jerry Snitselaar
  0 siblings, 1 reply; 2+ messages in thread
From: Jerry Snitselaar @ 2014-04-28  6:31 UTC (permalink / raw)
  To: JBottomley, linux-scsi, linux-kernel

Clean up of coding style warnings from checkpatch

Signed-off-by: Jerry Snitselaar <dev@snitselaar.org>
---
 drivers/scsi/virtio_scsi.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 16bfd50..fa0b25f 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -498,8 +498,8 @@ static int virtscsi_queuecommand(struct virtio_scsi *vscsi,
 {
 	struct virtio_scsi_cmd *cmd;
 	int ret;
-
 	struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev);
+
 	BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize);
 
 	/* TODO: check feature bit and fail if unsupported?  */
@@ -661,6 +661,7 @@ static int virtscsi_target_alloc(struct scsi_target *starget)
 {
 	struct virtio_scsi_target_state *tgt =
 				kmalloc(sizeof(*tgt), GFP_KERNEL);
+
 	if (!tgt)
 		return -ENOMEM;
 
@@ -675,6 +676,7 @@ static int virtscsi_target_alloc(struct scsi_target *starget)
 static void virtscsi_target_destroy(struct scsi_target *starget)
 {
 	struct virtio_scsi_target_state *tgt = starget->hostdata;
+
 	kfree(tgt);
 }
 
@@ -768,6 +770,7 @@ static int virtscsi_cpu_callback(struct notifier_block *nfb,
 				 unsigned long action, void *hcpu)
 {
 	struct virtio_scsi *vscsi = container_of(nfb, struct virtio_scsi, nb);
+
 	switch(action) {
 	case CPU_ONLINE:
 	case CPU_ONLINE_FROZEN:
-- 
2.0.0.rc0


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

* [PATCH 2/2] virtio_scsi: space required before open parenthesis
  2014-04-28  6:31 [PATCH 1/2] virtio_scsi: blank line after declaration cleanup Jerry Snitselaar
@ 2014-04-28  6:31 ` Jerry Snitselaar
  0 siblings, 0 replies; 2+ messages in thread
From: Jerry Snitselaar @ 2014-04-28  6:31 UTC (permalink / raw)
  To: JBottomley, linux-scsi, linux-kernel

Fix coding style warnings from checkpatch

Signed-off-by: Jerry Snitselaar <dev@snitselaar.org>
---
 drivers/scsi/virtio_scsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 9f2fccc..9248a1e 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -723,7 +723,7 @@ static struct scsi_host_template virtscsi_host_template_multi = {
 	do { \
 		typeof(((struct virtio_scsi_config *)0)->fld) __val = (val); \
 		virtio_cwrite(vdev, struct virtio_scsi_config, fld, &__val); \
-	} while(0)
+	} while (0)
 
 static void __virtscsi_set_affinity(struct virtio_scsi *vscsi, bool affinity)
 {
@@ -771,7 +771,7 @@ static int virtscsi_cpu_callback(struct notifier_block *nfb,
 {
 	struct virtio_scsi *vscsi = container_of(nfb, struct virtio_scsi, nb);
 
-	switch(action) {
+	switch (action) {
 	case CPU_ONLINE:
 	case CPU_ONLINE_FROZEN:
 	case CPU_DEAD:
-- 
2.0.0.rc0


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

end of thread, other threads:[~2014-04-28  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-28  6:31 [PATCH 1/2] virtio_scsi: blank line after declaration cleanup Jerry Snitselaar
2014-04-28  6:31 ` [PATCH 2/2] virtio_scsi: space required before open parenthesis Jerry Snitselaar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).