summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2018-05-29 16:55:41 -0400
committerJes Sorensen <jsorensen@fb.com>2018-05-29 16:55:41 -0400
commit1cdc06dfda62775647b81e2753fc7908e1bbffc2 (patch)
tree4fe875bada1f114c4cbc56baed83018c781aa78c
parent167d8bb8302170676f0e15123738e333383fec7b (diff)
downloadmdadm-1cdc06dfda62775647b81e2753fc7908e1bbffc2.tar.gz
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 <jsorensen@fb.com>
-rw-r--r--super-intel.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index ec7683d..cc53f0f 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));