Commit 628b1e1136515c096ba995df694294dbe4ac876d
Committed by
Marcel Holtmann
1 parent
6d5fb87745
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
mac802154: remove const for non pointer in rdev-ops
This patches removes the const keyword in variables which are non pointers. There is no sense to declare call by value parameters as const. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Reported-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Showing 1 changed file with 5 additions and 9 deletions Side-by-side Diff
net/ieee802154/rdev-ops.h
... | ... | @@ -21,8 +21,7 @@ |
21 | 21 | } |
22 | 22 | |
23 | 23 | static inline int |
24 | -rdev_set_channel(struct cfg802154_registered_device *rdev, const u8 page, | |
25 | - const u8 channel) | |
24 | +rdev_set_channel(struct cfg802154_registered_device *rdev, u8 page, u8 channel) | |
26 | 25 | { |
27 | 26 | return rdev->ops->set_channel(&rdev->wpan_phy, page, channel); |
28 | 27 | } |
... | ... | @@ -43,8 +42,7 @@ |
43 | 42 | |
44 | 43 | static inline int |
45 | 44 | rdev_set_backoff_exponent(struct cfg802154_registered_device *rdev, |
46 | - struct wpan_dev *wpan_dev, const u8 min_be, | |
47 | - const u8 max_be) | |
45 | + struct wpan_dev *wpan_dev, u8 min_be, u8 max_be) | |
48 | 46 | { |
49 | 47 | return rdev->ops->set_backoff_exponent(&rdev->wpan_phy, wpan_dev, |
50 | 48 | min_be, max_be); |
... | ... | @@ -52,8 +50,7 @@ |
52 | 50 | |
53 | 51 | static inline int |
54 | 52 | rdev_set_max_csma_backoffs(struct cfg802154_registered_device *rdev, |
55 | - struct wpan_dev *wpan_dev, | |
56 | - const u8 max_csma_backoffs) | |
53 | + struct wpan_dev *wpan_dev, u8 max_csma_backoffs) | |
57 | 54 | { |
58 | 55 | return rdev->ops->set_max_csma_backoffs(&rdev->wpan_phy, wpan_dev, |
59 | 56 | max_csma_backoffs); |
... | ... | @@ -61,8 +58,7 @@ |
61 | 58 | |
62 | 59 | static inline int |
63 | 60 | rdev_set_max_frame_retries(struct cfg802154_registered_device *rdev, |
64 | - struct wpan_dev *wpan_dev, | |
65 | - const s8 max_frame_retries) | |
61 | + struct wpan_dev *wpan_dev, s8 max_frame_retries) | |
66 | 62 | { |
67 | 63 | return rdev->ops->set_max_frame_retries(&rdev->wpan_phy, wpan_dev, |
68 | 64 | max_frame_retries); |
... | ... | @@ -70,7 +66,7 @@ |
70 | 66 | |
71 | 67 | static inline int |
72 | 68 | rdev_set_lbt_mode(struct cfg802154_registered_device *rdev, |
73 | - struct wpan_dev *wpan_dev, const bool mode) | |
69 | + struct wpan_dev *wpan_dev, bool mode) | |
74 | 70 | { |
75 | 71 | return rdev->ops->set_lbt_mode(&rdev->wpan_phy, wpan_dev, mode); |
76 | 72 | } |