net: fddi: skfp: smt: Place definition of 'smt_pdef' under same stipulations as its use
authorLee Jones <lee.jones@linaro.org>
Fri, 14 Aug 2020 11:39:24 +0000 (12:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Aug 2020 03:42:25 +0000 (20:42 -0700)
commit327afdd7c0d13695e8fcbaa0995d451b34c3107b
treeebf37862779db3f05231a838276ad2dcd66beb6f
parent026ff46b42f4929b25ef28e1e69dd302835c9783
net: fddi: skfp: smt: Place definition of 'smt_pdef' under same stipulations as its use

The variable 'smt_pdef' is only used if LITTLE_ENDIAN is set, so only
define it if this is the case.

Fixes the following W=1 kernel build warning(s):

 drivers/net/fddi/skfp/smt.c:1572:3: warning: ‘smt_pdef’ defined but not used [-Wunused-const-variable=]

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: netdev@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fddi/skfp/smt.c