diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2024-01-08 22:02:39 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-11 05:36:25 +0100 |
commit | aa9ff6c28d682887ad6f19bda4aab3485897db78 (patch) | |
tree | b80c12b9d14dcec86c68e60fbaae191147e06f2d /src/udev | |
parent | network: take explicit ownership of our own interfaces (diff) | |
download | systemd-aa9ff6c28d682887ad6f19bda4aab3485897db78.tar.xz systemd-aa9ff6c28d682887ad6f19bda4aab3485897db78.zip |
tree-wide: replace string functions with fundamental functions
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-builtin-path_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c index c4057d63c3..dc0630596b 100644 --- a/src/udev/udev-builtin-path_id.c +++ b/src/udev/udev-builtin-path_id.c @@ -186,7 +186,7 @@ static sd_device *handle_scsi_sas(sd_device *parent, char **path) { return NULL; /* Check if we are simple disk */ - if (strncmp(phy_count, "1", 2) != 0) + if (!streq(phy_count, "1")) return handle_scsi_sas_wide_port(parent, path); /* Get connected phy */ |