]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - platform-intel.h
Fix memory leak
[thirdparty/mdadm.git] / platform-intel.h
index e24ae37928b3b422664e41faed530e979de05708..6c094d72692b42465241e2ee0c3240604cc921a7 100644 (file)
@@ -167,21 +167,6 @@ static inline int fls(int x)
        return r;
 }
 
-/**
- * imsm_orom_default_chunk - return the largest chunk size supported via orom
- * @orom: orom pointer from find_imsm_orom
- */
-static inline int imsm_orom_default_chunk(const struct imsm_orom *orom)
-{
-       int fs = fls(orom->sss);
-
-       if (!fs)
-               return 0;
-
-       return min(512, (1 << fs));
-}
-
-
 enum sys_dev_type {
        SYS_DEV_UNKNOWN = 0,
        SYS_DEV_SAS,
@@ -189,7 +174,6 @@ enum sys_dev_type {
        SYS_DEV_MAX
 };
 
-
 struct sys_dev {
        enum sys_dev_type type;
        char *path;