Skip to content

Commit

Permalink
firewire: sbp2: remove superfluous blk_queue_max_segment_size() call
Browse files Browse the repository at this point in the history
The SCSI framework automatically initializes the block queue's segment
size with the DMA device's segment size.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Clemens Ladisch authored and Stefan Richter committed May 21, 2012
1 parent f203022 commit 935f672
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/firewire/sbp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,8 +1564,6 @@ static int sbp2_scsi_slave_configure(struct scsi_device *sdev)
if (lu->tgt->workarounds & SBP2_WORKAROUND_128K_MAX_TRANS)
blk_queue_max_hw_sectors(sdev->request_queue, 128 * 1024 / 512);

blk_queue_max_segment_size(sdev->request_queue, SBP2_MAX_SEG_SIZE);

return 0;
}

Expand Down

0 comments on commit 935f672

Please sign in to comment.