Operator precedence causes ct_rjt_reason() to always return zero. This patch fixes the issue.
Signed-off-by: Petr Sabata <[email protected]> --- fcnsq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fcnsq.c b/fcnsq.c index 48c350e..e5abeb9 100644 --- a/fcnsq.c +++ b/fcnsq.c @@ -150,7 +150,7 @@ static u16 ct_rjt(u8 reason, u8 explan) { } static u8 ct_rjt_reason(u16 rjt) { - return (u8) rjt >> 8; + return (u8)(rjt >> 8); } static u8 ct_rjt_explan(u16 rjt) { -- 1.7.5.4 _______________________________________________ devel mailing list [email protected] https://lists.open-fcoe.org/mailman/listinfo/devel
