From: Tejun Heo Date: Tue, 28 Apr 2009 04:06:05 +0000 (+0900) Subject: block: don't init rq fields unnecessarily X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c94dece1baf320d925cedb231489c4e0358ac5a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git block: don't init rq fields unnecessarily blk_get_request() always returns properly zeroed requests. Don't set fields to zero/NULL unnecessarily. [ Impact: cleanup ] Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index bb9aa43551b2..58cf4560f742 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -500,8 +500,6 @@ static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk, rq = blk_get_request(q, WRITE, __GFP_WAIT); rq->cmd_type = REQ_TYPE_BLOCK_PC; - rq->data_len = 0; - rq->extra_len = 0; rq->timeout = BLK_DEFAULT_SG_TIMEOUT; rq->cmd[0] = cmd; rq->cmd[4] = data;