]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 08:29:47 +0000 (16:29 +0800)
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>
(cherry picked from commit ab6baf980b095c70a56c5eb2f58166aef8a0edc8)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
include/net/dcbnl.h
net/dcb/dcbnl.c

index 5dd0d99582fc02cd778453110f5edcfb457ce93f..be6a43f7db80a7f6d8b272a2d4b539ccc6170718 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 d479a359a100107d51921f223791e9db74fabff3..01607e7e58911b387ef1837fbc1d6d49134b8834 100644 (file)
@@ -1882,7 +1882,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;