summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorPujin Shi <shipujin.t@gmail.com>2020-10-08 14:19:28 +0200
committerJakub Kicinski <kuba@kernel.org>2020-10-10 19:38:40 +0200
commit7e94e46c16d060fe272b658ad5e7c2374eeec1bb (patch)
tree39c3a7738d7b4d61a7442d913c4660cc439ebfb3 /net/smc
parentMerge tag 'linux-can-fixes-for-5.9-20201008' of git://git.kernel.org/pub/scm/... (diff)
downloadlinux-7e94e46c16d060fe272b658ad5e7c2374eeec1bb.tar.xz
linux-7e94e46c16d060fe272b658ad5e7c2374eeec1bb.zip
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;