]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/genhd.c
block: don't look at the struct device dev_t in disk_devt
[mirror_ubuntu-bionic-kernel.git] / block / genhd.c
index dd305c65ffb05d5016f1c602e65849a2fbf8e418..1174d24e405eed36a23658221a6b72591fb42ce4 100644 (file)
@@ -649,10 +649,6 @@ void device_add_disk(struct device *parent, struct gendisk *disk)
                return;
        }
        disk_to_dev(disk)->devt = devt;
-
-       /* ->major and ->first_minor aren't supposed to be
-        * dereferenced from here on, but set them just in case.
-        */
        disk->major = MAJOR(devt);
        disk->first_minor = MINOR(devt);