MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-11-11 04:13:47 +00:00
parent f403cfb19c
commit 4d651f4e5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227444

View File

@ -1009,8 +1009,7 @@ make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
}
sprintf(devfspath, "%s/%s", physpath, pdev->si_name);
if (old_alias != NULL
&& strcmp(old_alias->si_name, devfspath) == 0) {
if (old_alias != NULL && strcmp(old_alias->si_name, devfspath) == 0) {
/* Retain the existing alias. */
*cdev = old_alias;
old_alias = NULL;