Skip to content

Commit

Permalink
drivers/net/rpmsgdrv.c: Take netdev_register() return value into account
Browse files Browse the repository at this point in the history
Signed-off-by: Jani Paalijarvi <[email protected]>
  • Loading branch information
jpaali committed Sep 19, 2023
1 parent 7d3f11a commit 28a2b2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/rpmsgdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,7 @@ int net_rpmsg_drv_init(FAR const char *cpuname,
{
FAR struct net_rpmsg_drv_s *priv;
FAR struct net_driver_s *dev;
int ret;

/* Allocate the interface structure */

Expand Down Expand Up @@ -1152,6 +1153,6 @@ int net_rpmsg_drv_init(FAR const char *cpuname,

/* Register the device with the OS so that socket IOCTLs can be performed */

netdev_register(dev, lltype);
return OK;
ret = netdev_register(dev, lltype);
return ret;
}

0 comments on commit 28a2b2f

Please sign in to comment.