From: Shannon Nelson Date: Tue, 7 Jan 2020 03:43:49 +0000 (-0800) Subject: ionic: clear compiler warning on hb use before set X-Git-Tag: v5.6-rc1~151^2~149^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6be1a5ce1b39b43294a8eda9ba5254792decb15e;p=thirdparty%2Flinux.git ionic: clear compiler warning on hb use before set Build checks have pointed out that 'hb' can theoretically be used before set, so let's initialize it and get rid of the compiler complaint. Signed-off-by: Shannon Nelson Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/pensando/ionic/ionic_main.c b/drivers/net/ethernet/pensando/ionic/ionic_main.c index 837b85f2fed95..a8e3fb73b4650 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_main.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_main.c @@ -330,9 +330,9 @@ int ionic_dev_cmd_wait(struct ionic *ionic, unsigned long max_seconds) unsigned long max_wait; unsigned long duration; int opcode; + int hb = 0; int done; int err; - int hb; WARN_ON(in_interrupt());