Skip to content

Commit

Permalink
dpaa2: mc: Remove unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsalychev committed Apr 29, 2022
1 parent b87a3be commit 0e7b9be
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sys/dev/dpaa2/dpaa2_mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,8 @@ int
dpaa2_mc_activate_resource(device_t mcdev, device_t child, int type, int rid,
struct resource *r)
{
struct dpaa2_mc_softc *sc;
int rc;

sc = device_get_softc(mcdev);

if ((rc = rman_activate_resource(r)) != 0)
return (rc);

Expand All @@ -351,11 +348,8 @@ int
dpaa2_mc_deactivate_resource(device_t mcdev, device_t child, int type, int rid,
struct resource *r)
{
struct dpaa2_mc_softc *sc;
int rc;

sc = device_get_softc(mcdev);

if ((rc = rman_deactivate_resource(r)) != 0)
return (rc);

Expand Down

0 comments on commit 0e7b9be

Please sign in to comment.