Skip to content
Browse files

fcoe-utils: Fix ct_rjt_reason()

Operator precedence causes ct_rjt_reason() to always return zero.  This
patch fixes the issue.

Signed-off-by: Petr Sabata <contyk@redhat.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
  • Loading branch information...
1 parent 562c734 commit 50cc2851348ce3964e7fc0cf834480b81d1b464c @contyk contyk committed with Robert Love
Showing with 1 addition and 1 deletion.
  1. +1 −1 fcnsq.c
View
2 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) {

0 comments on commit 50cc285

Please sign in to comment.
Something went wrong with that request. Please try again.