Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca09a237 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: workaround for bogus gcc warning in ide_sysfs_register_port()

parent f3e85ee7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1492,7 +1492,7 @@ static struct device_attribute *ide_port_attrs[] = {


static int ide_sysfs_register_port(ide_hwif_t *hwif)
static int ide_sysfs_register_port(ide_hwif_t *hwif)
{
{
	int i, rc;
	int i, uninitialized_var(rc);


	for (i = 0; ide_port_attrs[i]; i++) {
	for (i = 0; ide_port_attrs[i]; i++) {
		rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
		rc = device_create_file(hwif->portdev, ide_port_attrs[i]);