diff mbox series

drivers/block: Updates loop_set_size comment

Message ID PAXP192MB1278B70E2258023496F97F2FE8FCA@PAXP192MB1278.EURP192.PROD.OUTLOOK.COM (mailing list archive)
State New, archived
Headers show
Series drivers/block: Updates loop_set_size comment | expand

Commit Message

Yuran Pereira Sept. 25, 2023, 1:48 p.m. UTC
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@hotmail.com>
---
 drivers/block/loop.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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)
 {