Skip to content

Commit

Permalink
dcb: fix return type on dcb_setapp()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
John Fastabend authored and davem330 committed Jun 21, 2011
1 parent a364c8c commit ab6baf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/dcbnl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct dcb_app_type {
struct list_head list;
};

u8 dcb_setapp(struct net_device *, struct dcb_app *);
int dcb_setapp(struct net_device *, struct dcb_app *);
u8 dcb_getapp(struct net_device *, struct dcb_app *);
int dcb_ieee_setapp(struct net_device *, struct dcb_app *);
int dcb_ieee_delapp(struct net_device *, struct dcb_app *);
Expand Down
2 changes: 1 addition & 1 deletion net/dcb/dcbnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@ EXPORT_SYMBOL(dcb_getapp);
* removes applications from the app list if the priority is
* set to zero.
*/
u8 dcb_setapp(struct net_device *dev, struct dcb_app *new)
int dcb_setapp(struct net_device *dev, struct dcb_app *new)
{
struct dcb_app_type *itr;
struct dcb_app_type event;
Expand Down

0 comments on commit ab6baf9

Please sign in to comment.