Skip to content

Commit ab6baf9

Browse files
John Fastabenddavem330
authored andcommitted
dcb: fix return type on dcb_setapp()
Incorrect return type on dcb_setapp() this routine returns negative error codes. All call sites of dcb_setapp() assign the return value to an int already so no need to update drivers. Signed-off-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a364c8c commit ab6baf9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/net/dcbnl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct dcb_app_type {
2828
struct list_head list;
2929
};
3030

31-
u8 dcb_setapp(struct net_device *, struct dcb_app *);
31+
int dcb_setapp(struct net_device *, struct dcb_app *);
3232
u8 dcb_getapp(struct net_device *, struct dcb_app *);
3333
int dcb_ieee_setapp(struct net_device *, struct dcb_app *);
3434
int dcb_ieee_delapp(struct net_device *, struct dcb_app *);

‎net/dcb/dcbnl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ EXPORT_SYMBOL(dcb_getapp);
18851885
* removes applications from the app list if the priority is
18861886
* set to zero.
18871887
*/
1888-
u8 dcb_setapp(struct net_device *dev, struct dcb_app *new)
1888+
int dcb_setapp(struct net_device *dev, struct dcb_app *new)
18891889
{
18901890
struct dcb_app_type *itr;
18911891
struct dcb_app_type event;

0 commit comments

Comments
 (0)