Skip to content

Commit 9b9e32f

Browse files
aloktiwarleon
authored andcommitted
RDMA/bnxt_re: Fix incorrect errno used in function comments
The function comments in qplib_rcfw.c mention -ETIMEOUT as a possible return value. However, the correct errno is -ETIMEDOUT. Update the comments to reflect the proper return value to avoid confusion for developers and users referring to the code. Signed-off-by: Alok Tiwari <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 4b6b623 commit 9b9e32f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/infiniband/hw/bnxt_re/qplib_rcfw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static int __wait_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie)
186186
* wait for command completion. Maximum holding interval is 8 second.
187187
*
188188
* Returns:
189-
* -ETIMEOUT if command is not completed in specific time interval.
189+
* -ETIMEDOUT if command is not completed in specific time interval.
190190
* 0 if command is completed by firmware.
191191
*/
192192
static int __block_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie)
@@ -382,7 +382,7 @@ static int __send_message(struct bnxt_qplib_rcfw *rcfw,
382382
* This function can not be called from non-sleepable context.
383383
*
384384
* Returns:
385-
* -ETIMEOUT if command is not completed in specific time interval.
385+
* -ETIMEDOUT if command is not completed in specific time interval.
386386
* 0 if command is completed by firmware.
387387
*/
388388
static int __poll_for_resp(struct bnxt_qplib_rcfw *rcfw, u16 cookie)

0 commit comments

Comments
 (0)