Re: [PATCH v2] wifi: rtw89: debug: fix error code in rtw89_debug_priv_send_h2c_set()

From: Larry Finger
Date: Tue Jul 04 2023 - 13:22:21 EST


On 7/4/23 11:55, Zhang Shurong wrote:
If there is a failure during rtw89_fw_h2c_raw() rtw89_debug_priv_send_h2c
should return negative error code instead of a positive value count.

Fix this bug by returning correct error code.

The changes in this version:
- fix some compile error

Signed-off-by: Zhang Shurong <zhang_shurong@xxxxxxxxxxx>

I have two comments on the patch itself:

1) Whenever you have a fix for the code, you need to annotate it using the "Fixes: tag". See file Documentation/process/submitting-patches.rst in your source tree.

2) The version change stuff should be in the following order:

Signed-off-by: ....
---
v2 - fixed compile error
---
Body of patch.

Placing it where you did would cause the details of "making the sausage" be saved in the commit log. The reviewer and maintainer need to see it, but not the end user.

Larry