mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Update setapp/getapp prototypes in dcbnl_rtnl_ops to return int instead of u8
v2: fixed issue with checking return of dcbnl_rtnl_ops->getapp() Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9cc63db5e1
commit
c2659479f7
6 changed files with 22 additions and 25 deletions
|
|
@ -471,7 +471,11 @@ static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh,
|
|||
id = nla_get_u16(app_tb[DCB_APP_ATTR_ID]);
|
||||
|
||||
if (netdev->dcbnl_ops->getapp) {
|
||||
up = netdev->dcbnl_ops->getapp(netdev, idtype, id);
|
||||
ret = netdev->dcbnl_ops->getapp(netdev, idtype, id);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
else
|
||||
up = ret;
|
||||
} else {
|
||||
struct dcb_app app = {
|
||||
.selector = idtype,
|
||||
|
|
@ -538,6 +542,8 @@ static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh,
|
|||
|
||||
if (netdev->dcbnl_ops->setapp) {
|
||||
ret = netdev->dcbnl_ops->setapp(netdev, idtype, id, up);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
} else {
|
||||
struct dcb_app app;
|
||||
app.selector = idtype;
|
||||
|
|
|
|||
Loading…
Reference in a new issue