Skip to content
Snippets Groups Projects
Commit daa2ce62 authored by Timur Tabi's avatar Timur Tabi Committed by Ben Warren
Browse files

tsec: fix the return value for tsec_eth_init()


The Ethernet initialization functions are supposed to return the number of
devices initialized, so fix tsec_eth_init() so that they returns the number of
TSECs initialized, instead of just zero.  This is safe because the return value
is currently ignored by all callers, but now they don't have to ignore it.

In general, if an function initializes only one device, then it should return
a negative number if there's an error.  If it initializes more than one device,
then it should never return a negative number.

Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent ec0d879f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment