summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorPujin Shi <shipujin.t@gmail.com>2020-10-08 20:19:28 +0800
committerJakub Kicinski <kuba@kernel.org>2020-10-10 10:38:40 -0700
commit7e94e46c16d060fe272b658ad5e7c2374eeec1bb (patch)
tree39c3a7738d7b4d61a7442d913c4660cc439ebfb3 /net/smc
parentb54fa649d7e7f8081f80c052de71267a42095dfa (diff)
downloadlinux-7e94e46c16d060fe272b658ad5e7c2374eeec1bb.tar.bz2
net: smc: fix missing brace warning for old compilers
For older versions of gcc, the array = {0}; will cause warnings: net/smc/smc_llc.c: In function 'smc_llc_send_link_delete_all': net/smc/smc_llc.c:1317:9: warning: missing braces around initializer [-Wmissing-braces] struct smc_llc_msg_del_link delllc = {0}; ^ net/smc/smc_llc.c:1317:9: warning: (near initialization for 'delllc.hd') [-Wmissing-braces] 1 warnings generated Fixes: f3811fd7bc97 ("net/smc: send DELETE_LINK, ALL message and wait for send to complete") Signed-off-by: Pujin Shi <shipujin.t@gmail.com> Acked-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_llc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_llc.c b/net/smc/smc_llc.c
index 3ea33466ebe9..19c8ff7a3609 100644
--- a/net/smc/smc_llc.c
+++ b/net/smc/smc_llc.c
@@ -1314,7 +1314,7 @@ out:
*/
void smc_llc_send_link_delete_all(struct smc_link_group *lgr, bool ord, u32 rsn)
{
- struct smc_llc_msg_del_link delllc = {0};
+ struct smc_llc_msg_del_link delllc = {};
int i;
delllc.hd.common.type = SMC_LLC_DELETE_LINK;