Skip to content

Commit 19997ba

Browse files
Jakub Kicinskidavem330
authored andcommitted
nfp: clean up return types in kdoc comments
Remove 'Return:' information from functions which no longer return a value. Also update name and return types of nfp_nffw_info access functions. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent c371e7b commit 19997ba

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_common.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,6 @@ static int nfp_net_tx(struct sk_buff *skb, struct net_device *netdev)
949949
* nfp_net_tx_complete() - Handled completed TX packets
950950
* @tx_ring: TX ring structure
951951
* @budget: NAPI budget (only used as bool to determine if in NAPI context)
952-
*
953-
* Return: Number of completed TX descriptors
954952
*/
955953
static void nfp_net_tx_complete(struct nfp_net_tx_ring *tx_ring, int budget)
956954
{

drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ nffw_res_fwinfos(struct nfp_nffw_info_data *fwinf, struct nffw_fwinfo **arr)
207207
* nfp_nffw_info_open() - Acquire the lock on the NFFW table
208208
* @cpp: NFP CPP handle
209209
*
210-
* Return: 0, or -ERRNO
210+
* Return: pointer to nfp_nffw_info object or ERR_PTR()
211211
*/
212212
struct nfp_nffw_info *nfp_nffw_info_open(struct nfp_cpp *cpp)
213213
{
@@ -253,10 +253,8 @@ struct nfp_nffw_info *nfp_nffw_info_open(struct nfp_cpp *cpp)
253253
}
254254

255255
/**
256-
* nfp_nffw_info_release() - Release the lock on the NFFW table
256+
* nfp_nffw_info_close() - Release the lock on the NFFW table and free state
257257
* @state: NFP FW info state
258-
*
259-
* Return: 0, or -ERRNO
260258
*/
261259
void nfp_nffw_info_close(struct nfp_nffw_info *state)
262260
{

0 commit comments

Comments
 (0)