Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314498
b: refs/heads/master
c: f82b959
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jun 19, 2012
1 parent de5871b commit 14b3f5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 596e2024c42159fedf71b3d17fba78eed9b5bf10
refs/heads/master: f82b959d26557fe4ce283d3b27050d4b8268ef1e
4 changes: 4 additions & 0 deletions trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ static int team_option_get(struct team *team,
struct team_option_inst *opt_inst,
struct team_gsetter_ctx *ctx)
{
if (!opt_inst->option->getter)
return -EOPNOTSUPP;
return opt_inst->option->getter(team, ctx);
}

Expand All @@ -355,6 +357,8 @@ static int team_option_set(struct team *team,
{
int err;

if (!opt_inst->option->setter)
return -EOPNOTSUPP;
err = opt_inst->option->setter(team, ctx);
if (err)
return err;
Expand Down

0 comments on commit 14b3f5e

Please sign in to comment.