]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Forward value of sector_size instead of its address in blkdev_get_physector_size
authorNicolas Melot <nicolas.melot@ericsson.com>
Sun, 1 Aug 2021 17:20:58 +0000 (19:20 +0200)
committerNicolas Melot <nicolas.melot@ericsson.com>
Sun, 1 Aug 2021 17:20:58 +0000 (19:20 +0200)
lib/blkdev.c

index 9de8512917a9786ac6603e3f1136776080b80668..cc1eea3a6281d1af435bef74050fe350be99f0d5 100644 (file)
@@ -226,8 +226,10 @@ int blkdev_get_sector_size(int fd __attribute__((__unused__)), int *sector_size)
 #ifdef BLKPBSZGET
 int blkdev_get_physector_size(int fd, int *sector_size)
 {
-       if (ioctl(fd, BLKPBSZGET, &sector_size) >= 0)
+       if (ioctl(fd, BLKPBSZGET, sector_size) >= 0)
+    {
                return 0;
+    }
        return -1;
 }
 #else