Since loop_validate_size() has been removed, there is no longer a need to validate the size passed to loop_set_size(). This patch removes the comment from loop_set_size() that states otherwise. Signed-off-by: Yuran Pereira <yuran.pereira@xxxxxxxxxxx> --- drivers/block/loop.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 9f2d412fc560..68b8684ca16f 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -228,9 +228,6 @@ static void __loop_update_dio(struct loop_device *lo, bool dio) * loop_set_size() - sets device size and notifies userspace * @lo: struct loop_device to set the size for * @size: new size of the loop device - * - * Callers must validate that the size passed into this function fits into - * a sector_t, eg using loop_validate_size() */ static void loop_set_size(struct loop_device *lo, loff_t size) { -- 2.25.1