Skip to content

Commit a405e2c

Browse files
authored
Merge pull request #25 from MicrochipTech/bugfix/stmfd_3742
STMFD-3742: Fix for CLI cmd's Crash via UART
2 parents 3a34f1c + f276d3d commit a405e2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inc/switchtec/switchtec.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ static inline int switchtec_is_gen5(struct switchtec_dev *dev)
483483
*/
484484
static inline int switchtec_max_supported_ports(struct switchtec_dev *dev)
485485
{
486-
return switchtec_is_gen5(dev) ? SWITCHTEC_MAX_PORTS :
487-
switchtec_is_gen4(dev) ? 52 : 48;
486+
return SWITCHTEC_MAX_PORTS;
488487
}
489488

490489
/**

0 commit comments

Comments
 (0)