From: Jes Sorensen Date: Tue, 29 May 2018 20:55:41 +0000 (-0400) Subject: super-intel: Get rid of unnused string X-Git-Tag: mdadm-4.1-rc2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cdc06dfda62775647b81e2753fc7908e1bbffc2;p=thirdparty%2Fmdadm.git super-intel: Get rid of unnused string No need to snprintf() into the string when we don't use it afterards Signed-off-by: Jes Sorensen --- diff --git a/super-intel.c b/super-intel.c index ec7683d9..cc53f0fc 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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));