diff mbox series

obexd: Fix the code style

Message ID 20220705092952.11868-1-wangyouwan@uniontech.com
State New
Headers show
Series obexd: Fix the code style | expand

Commit Message

Youwan Wang July 5, 2022, 9:29 a.m. UTC
---
 obexd/client/session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/obexd/client/session.c b/obexd/client/session.c
index 6955a8089..7d8ebb04e 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
@@ -950,7 +950,7 @@  static void transfer_complete(struct obc_transfer *transfer,
 {
 	struct obc_session *session = user_data;
 
-	if (err != 0)
+	if (err)
 		goto fail;
 
 	session_notify_complete(session, transfer);