Blame SOURCES/0013-super-intel-Get-rid-of-unnused-string.patch
|
|
59ea72 |
From 1cdc06dfda62775647b81e2753fc7908e1bbffc2 Mon Sep 17 00:00:00 2001
|
|
|
59ea72 |
From: Jes Sorensen <jsorensen@fb.com>
|
|
|
59ea72 |
Date: Tue, 29 May 2018 16:55:41 -0400
|
|
|
59ea72 |
Subject: [RHEL7.5 PATCH 13/26] super-intel: Get rid of unnused string
|
|
|
59ea72 |
|
|
|
59ea72 |
No need to snprintf() into the string when we don't use it afterards
|
|
|
59ea72 |
|
|
|
59ea72 |
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
|
59ea72 |
---
|
|
|
59ea72 |
super-intel.c | 1 -
|
|
|
59ea72 |
1 file changed, 1 deletion(-)
|
|
|
59ea72 |
|
|
|
59ea72 |
diff --git a/super-intel.c b/super-intel.c
|
|
|
59ea72 |
index ec7683d..cc53f0f 100644
|
|
|
59ea72 |
--- a/super-intel.c
|
|
|
59ea72 |
+++ b/super-intel.c
|
|
|
59ea72 |
@@ -1928,7 +1928,6 @@ static void examine_super_imsm(struct supertype *st, char *homehost)
|
|
|
59ea72 |
strncpy(str, (char *)mpb->sig, MPB_SIG_LEN);
|
|
|
59ea72 |
str[MPB_SIG_LEN-1] = '\0';
|
|
|
59ea72 |
printf(" Magic : %s\n", str);
|
|
|
59ea72 |
- snprintf(str, strlen(MPB_VERSION_RAID0), "%s", get_imsm_version(mpb));
|
|
|
59ea72 |
printf(" Version : %s\n", get_imsm_version(mpb));
|
|
|
59ea72 |
printf(" Orig Family : %08x\n", __le32_to_cpu(mpb->orig_family_num));
|
|
|
59ea72 |
printf(" Family : %08x\n", __le32_to_cpu(mpb->family_num));
|
|
|
59ea72 |
--
|
|
|
59ea72 |
2.7.4
|
|
|
59ea72 |
|