Skip to contentSkip to conversation

src: Remove dead assignments in batocomp

PATCH In review Arnav Kapoor 2 participants 2 messages Jun 21 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 src: Remove dead assignments in batocomp

The return values of udev_hwdb_unref() and udev_unref() are assigned to local variables that are never read again.

Remove the unnecessary assignments.

Found by scan-build.

---
 src/oui.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/oui.c +2 -2
index e20297b93..4d9c3c3e7 100644
@@ -47,10 +47,10 @@ char *batocomp(const bdaddr_t *ba)
 		}
 	}
 
-	hwdb = udev_hwdb_unref(hwdb);
+	udev_hwdb_unref(hwdb);
 
 done:
-	udev = udev_unref(udev);
+	udev_unref(udev);
 
 	return comp;
 }
Signature · 1 line
2.53.0
#1 lore raw

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=1114380

---Test result---

Test Summary:

CheckPatch                    PASS      0.87 seconds
GitLint                       PASS      0.54 seconds
BuildEll                      PASS      20.26 seconds
BluezMake                     PASS      655.79 seconds
CheckSmatch                   PASS      354.56 seconds
bluezmakeextell               PASS      182.62 seconds
IncrementalBuild              PASS      660.77 seconds
ScanBuild                     PASS      1029.24 seconds

https://github.com/bluez/bluez/pull/2247

---
Regards,
Linux Bluetooth