Skip to content

Commit

Permalink
ieee802154: fix new function declaration
Browse files Browse the repository at this point in the history
The commit 8fad346 ("eee802154: add basic support for RF212 to
at86rf230 driver") introduced the new function is_rf212() with some
minor issues in declaration:

1) Fix the function type by changing it to bool as the function
   definition returns a boolean value. Additionally both callers of
   is_rf212() are expected to return a boolean value.

2) Fix the function specifier by deleting the inline keyword as the
   compiler takes care of that.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jean Sacren authored and David S. Miller committed Feb 26, 2014
1 parent 84a3e72 commit 44a6bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ieee802154/at86rf230.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct at86rf230_local {
int rssi_base_val;
};

static inline int is_rf212(struct at86rf230_local *local)
static bool is_rf212(struct at86rf230_local *local)
{
return local->part == 7;
}
Expand Down

0 comments on commit 44a6bd8

Please sign in to comment.