diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/scsi/st.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index b33d04250bbc..12d58a7ed6bc 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
| @@ -2859,11 +2859,8 @@ static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned lon | |||
| 2859 | ioctl_result = st_int_ioctl(STp, MTBSF, 1); | 2859 | ioctl_result = st_int_ioctl(STp, MTBSF, 1); |
| 2860 | 2860 | ||
| 2861 | if (cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) { | 2861 | if (cmd_in == MTSETBLK || cmd_in == SET_DENS_AND_BLK) { |
| 2862 | int old_block_size = STp->block_size; | ||
| 2863 | STp->block_size = arg & MT_ST_BLKSIZE_MASK; | 2862 | STp->block_size = arg & MT_ST_BLKSIZE_MASK; |
| 2864 | if (STp->block_size != 0) { | 2863 | if (STp->block_size != 0) { |
| 2865 | if (old_block_size == 0) | ||
| 2866 | normalize_buffer(STp->buffer); | ||
| 2867 | (STp->buffer)->buffer_blocks = | 2864 | (STp->buffer)->buffer_blocks = |
| 2868 | (STp->buffer)->buffer_size / STp->block_size; | 2865 | (STp->buffer)->buffer_size / STp->block_size; |
| 2869 | } | 2866 | } |
