[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1352283494-31200-3-git-send-email-gaowanlong@cn.fujitsu.com>
Date: Wed, 7 Nov 2012 18:18:11 +0800
From: Wanlong Gao <gaowanlong@...fujitsu.com>
To: linux-kernel@...r.kernel.org
Cc: "James E.J. Bottomley" <JBottomley@...allels.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Rusty Russell <rusty@...tcorp.com.au>,
linux-scsi@...r.kernel.org, kvm@...r.kernel.org,
Wanlong Gao <gaowanlong@...fujitsu.com>
Subject: [PATCH 2/5] virtio-scsi: remove the needless variable gfp_mask
Just use the macro instead of define a variable.
Cc: James E.J. Bottomley <JBottomley@...allels.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>
Cc: Rusty Russell <rusty@...tcorp.com.au>
Cc: linux-scsi@...r.kernel.org
Cc: kvm@...r.kernel.org
Signed-off-by: Wanlong Gao <gaowanlong@...fujitsu.com>
---
drivers/scsi/virtio_scsi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 8746c37..5390229 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -587,11 +587,10 @@ static struct virtio_scsi_target_state *virtscsi_alloc_tgt(
struct virtio_device *vdev, int sg_elems)
{
struct virtio_scsi_target_state *tgt;
- gfp_t gfp_mask = GFP_KERNEL;
/* We need extra sg elements at head and tail. */
tgt = kmalloc(sizeof(*tgt) + sizeof(tgt->sg[0]) * (sg_elems + 2),
- gfp_mask);
+ GFP_KERNEL);
if (!tgt)
return NULL;
--
1.8.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists