Skip to content

Commit fa3af1c

Browse files
Colin Ian Kinggregkh
authored andcommitted
thunderbolt: Remove redundant variable 'approved'
Variable 'approved' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'approved' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d04522f commit fa3af1c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thunderbolt/icm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,6 @@ icm_fr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr)
674674
struct tb_xdomain *xd;
675675
struct tb_switch *sw;
676676
u8 link, depth;
677-
bool approved;
678677
u64 route;
679678

680679
/*
@@ -688,7 +687,6 @@ icm_fr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr)
688687
link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
689688
depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
690689
ICM_LINK_INFO_DEPTH_SHIFT;
691-
approved = pkg->link_info & ICM_LINK_INFO_APPROVED;
692690

693691
if (link > ICM_MAX_LINK || depth > ICM_MAX_DEPTH) {
694692
tb_warn(tb, "invalid topology %u.%u, ignoring\n", link, depth);

0 commit comments

Comments
 (0)