]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
super-intel: Get rid of unnused string
authorJes Sorensen <jsorensen@fb.com>
Tue, 29 May 2018 20:55:41 +0000 (16:55 -0400)
committerJes Sorensen <jsorensen@fb.com>
Tue, 29 May 2018 20:55:41 +0000 (16:55 -0400)
No need to snprintf() into the string when we don't use it afterards

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c

index ec7683d92ff1718390e43a1c6cf85ae1429e7e38..cc53f0fc10e1b6b916de269ca753ee9cfb2f7cb3 100644 (file)
@@ -1928,7 +1928,6 @@ static void examine_super_imsm(struct supertype *st, char *homehost)
        strncpy(str, (char *)mpb->sig, MPB_SIG_LEN);
        str[MPB_SIG_LEN-1] = '\0';
        printf("          Magic : %s\n", str);
-       snprintf(str, strlen(MPB_VERSION_RAID0), "%s", get_imsm_version(mpb));
        printf("        Version : %s\n", get_imsm_version(mpb));
        printf("    Orig Family : %08x\n", __le32_to_cpu(mpb->orig_family_num));
        printf("         Family : %08x\n", __le32_to_cpu(mpb->family_num));