1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

Fix a few comments

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-01-04 21:46:54 +01:00
parent 2cfb197890
commit 1b2a7d92af
3 changed files with 6 additions and 8 deletions

View File

@ -941,7 +941,7 @@ int btrfs_qgroup_destroy_recursive(int fd, uint64_t qgroupid) {
/* Destroys the specified qgroup, but unassigns it from all /* Destroys the specified qgroup, but unassigns it from all
* its parents first. Also, it recursively destroys all * its parents first. Also, it recursively destroys all
* qgroups it is assgined to that have the same id part of the * qgroups it is assigned to that have the same id part of the
* qgroupid as the specified group. */ * qgroupid as the specified group. */
r = btrfs_qgroupid_split(qgroupid, NULL, &subvol_id); r = btrfs_qgroupid_split(qgroupid, NULL, &subvol_id);

View File

@ -272,13 +272,11 @@ int link_config_get(link_config_ctx *ctx, sd_device *device, link_config **ret)
link->filename, sysname); link->filename, sysname);
*ret = link; *ret = link;
return 0; return 0;
} }
} }
*ret = NULL; *ret = NULL;
return -ENOENT; return -ENOENT;
} }
@ -303,7 +301,7 @@ static bool should_rename(sd_device *device, bool respect_predictable) {
unsigned type; unsigned type;
int r; int r;
/* if we can't get the assgin type, assume we should rename */ /* if we can't get the assign type, assume we should rename */
if (sd_device_get_sysattr_value(device, "name_assign_type", &s) < 0) if (sd_device_get_sysattr_value(device, "name_assign_type", &s) < 0)
return true; return true;

View File

@ -460,7 +460,7 @@ static int dev_pci_slot(sd_device *dev, struct netnames *names) {
} }
} }
/* kernel provided front panel port name for multiple port PCI device */ /* kernel provided front panel port name for multi-port PCI device */
(void) sd_device_get_sysattr_value(dev, "phys_port_name", &port_name); (void) sd_device_get_sysattr_value(dev, "phys_port_name", &port_name);
/* compose a name based on the raw kernel's PCI bus, slot numbers */ /* compose a name based on the raw kernel's PCI bus, slot numbers */