File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1289,18 +1289,9 @@ static int virtblk_read_limits(struct virtio_blk *vblk,
1289
1289
lim -> max_segment_size = max_size ;
1290
1290
1291
1291
/* Host can optionally specify the block size of the device */
1292
- err = virtio_cread_feature (vdev , VIRTIO_BLK_F_BLK_SIZE ,
1292
+ virtio_cread_feature (vdev , VIRTIO_BLK_F_BLK_SIZE ,
1293
1293
struct virtio_blk_config , blk_size ,
1294
1294
& lim -> logical_block_size );
1295
- if (!err ) {
1296
- err = blk_validate_block_size (lim -> logical_block_size );
1297
- if (err ) {
1298
- dev_err (& vdev -> dev ,
1299
- "virtio_blk: invalid block size: 0x%x\n" ,
1300
- lim -> logical_block_size );
1301
- return err ;
1302
- }
1303
- }
1304
1295
1305
1296
/* Use topology information if available */
1306
1297
err = virtio_cread_feature (vdev , VIRTIO_BLK_F_TOPOLOGY ,
You can’t perform that action at this time.
0 commit comments