]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
dcb: fix return type on dcb_setapp()
authorJohn Fastabend <john.r.fastabend@intel.com>
Tue, 21 Jun 2011 07:34:58 +0000 (07:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2011 23:06:12 +0000 (16:06 -0700)
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>
include/net/dcbnl.h
net/dcb/dcbnl.c

index c14fd9483e4610331b027f018a00902e73d830a1..d5bbb797757762c1383dce0a7bd82973181671e7 100644 (file)
@@ -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 *);
index b7d0be01dcc4f10322e62d471d76931df86b7533..f54c784e2b5bfcf3aa1bb71146125db05f6ba67c 100644 (file)
@@ -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;