Skip to content

Commit

Permalink
pv: return via variable oc value as it is
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 4, 2023
1 parent d2d1704 commit b5cf0da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/modules/pv/pv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4622,11 +4622,7 @@ int pv_get_via_attr(
if(parse_via_oc(msg, vb, &ocv) < 0) {
return pv_get_null(msg, param, res);
}
if(ocv.oc == 1) {
return pv_get_sintval(msg, param, res, 1);
} else {
return pv_get_sintval(msg, param, res, 2);
}
return pv_get_sintval(msg, param, res, ocv.oc);
break;
case 10: /* oc-algo */
if(parse_via_oc(msg, vb, &ocv) < 0) {
Expand Down

0 comments on commit b5cf0da

Please sign in to comment.