mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 18:11:47 +00:00
net: marvell: octeontx2: simplify the return expression of rvu_npa_init()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
05372c456f
commit
8e3bf53c61
@ -497,18 +497,14 @@ static int npa_aq_init(struct rvu *rvu, struct rvu_block *block)
|
||||
int rvu_npa_init(struct rvu *rvu)
|
||||
{
|
||||
struct rvu_hwinfo *hw = rvu->hw;
|
||||
int blkaddr, err;
|
||||
int blkaddr;
|
||||
|
||||
blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPA, 0);
|
||||
if (blkaddr < 0)
|
||||
return 0;
|
||||
|
||||
/* Initialize admin queue */
|
||||
err = npa_aq_init(rvu, &hw->block[blkaddr]);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return npa_aq_init(rvu, &hw->block[blkaddr]);
|
||||
}
|
||||
|
||||
void rvu_npa_freemem(struct rvu *rvu)
|
||||
|
Loading…
Reference in New Issue
Block a user