diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2023-12-18 16:03:51 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2023-12-19 17:03:32 +0100 |
commit | e15e8b00cbce9330e2474fcdb7c3d40d23227555 (patch) | |
tree | 2ff4652fde0cf206e286698ab4a01736747f1539 /super-intel.c | |
parent | udev: Move udev_block() and udev_unblock() into udev.c (diff) | |
download | mdadm-e15e8b00cbce9330e2474fcdb7c3d40d23227555.tar.xz mdadm-e15e8b00cbce9330e2474fcdb7c3d40d23227555.zip |
Remove all "if zeros"
No more random encounters of "if zeros".
Remove all "if 0" code blocks.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/super-intel.c b/super-intel.c index 6bdd5c4c..efac07d5 100644 --- a/super-intel.c +++ b/super-intel.c @@ -2976,34 +2976,6 @@ static void uuid_from_super_imsm(struct supertype *st, int uuid[4]) memcpy(uuid, buf, 4*4); } -#if 0 -static void -get_imsm_numerical_version(struct imsm_super *mpb, int *m, int *p) -{ - __u8 *v = get_imsm_version(mpb); - __u8 *end = mpb->sig + MAX_SIGNATURE_LENGTH; - char major[] = { 0, 0, 0 }; - char minor[] = { 0 ,0, 0 }; - char patch[] = { 0, 0, 0 }; - char *ver_parse[] = { major, minor, patch }; - int i, j; - - i = j = 0; - while (*v != '\0' && v < end) { - if (*v != '.' && j < 2) - ver_parse[i][j++] = *v; - else { - i++; - j = 0; - } - v++; - } - - *m = strtol(minor, NULL, 0); - *p = strtol(patch, NULL, 0); -} -#endif - static __u32 migr_strip_blocks_resync(struct imsm_dev *dev) { /* migr_strip_size when repairing or initializing parity */ |