diff mbox series

[BlueZ] obexd: Remove redundant judgments and fix code style

Message ID 20240321021925.513182-1-youwan@nfschina.com (mailing list archive)
State Accepted
Commit 97fa2525fb104856c80f67af27cd87af09a41c4d
Headers show
Series [BlueZ] obexd: Remove redundant judgments and fix code style | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/BuildEll success Build ELL PASS
tedd_an/BluezMake success Bluez Make PASS
tedd_an/MakeCheck success Bluez Make Check PASS
tedd_an/MakeDistcheck success Make Distcheck PASS
tedd_an/CheckValgrind success Check Valgrind PASS
tedd_an/CheckSmatch success CheckSparse PASS
tedd_an/bluezmakeextell success Make External ELL PASS
tedd_an/IncrementalBuild success Incremental Build PASS
tedd_an/ScanBuild success Scan Build PASS

Commit Message

Youwan Wang March 21, 2024, 2:19 a.m. UTC
Signed-off-by: Youwan Wang <youwan@nfschina.com>
---
 obexd/src/manager.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

bluez.test.bot@gmail.com March 21, 2024, 4:01 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=836899

---Test result---

Test Summary:
CheckPatch                    PASS      0.42 seconds
GitLint                       PASS      0.28 seconds
BuildEll                      PASS      24.09 seconds
BluezMake                     PASS      1679.29 seconds
MakeCheck                     PASS      13.50 seconds
MakeDistcheck                 PASS      173.88 seconds
CheckValgrind                 PASS      243.37 seconds
CheckSmatch                   PASS      344.29 seconds
bluezmakeextell               PASS      117.17 seconds
IncrementalBuild              PASS      1440.27 seconds
ScanBuild                     PASS      974.88 seconds



---
Regards,
Linux Bluetooth
patchwork-bot+bluetooth@kernel.org March 22, 2024, 10:10 a.m. UTC | #2
Hello:

This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Thu, 21 Mar 2024 10:19:25 +0800 you wrote:
> Signed-off-by: Youwan Wang <youwan@nfschina.com>
> ---
>  obexd/src/manager.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)

Here is the summary with links:
  - [BlueZ] obexd: Remove redundant judgments and fix code style
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=97fa2525fb10

You are awesome, thank you!
diff mbox series

Patch

diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 73fd6b9af..c393911a7 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -525,7 +525,7 @@  void manager_cleanup(void)
 void manager_emit_transfer_property(struct obex_transfer *transfer,
 								char *name)
 {
-	if (!transfer->path)
+	if (transfer->path == NULL)
 		return;
 
 	g_dbus_emit_property_changed(connection, transfer->path,
@@ -542,9 +542,6 @@  void manager_emit_transfer_started(struct obex_transfer *transfer)
 static void emit_transfer_completed(struct obex_transfer *transfer,
 							gboolean success)
 {
-	if (transfer->path == NULL)
-		return;
-
 	transfer->status = success ? TRANSFER_STATUS_COMPLETE :
 						TRANSFER_STATUS_ERROR;