提交 ca09a237 编写于 作者: B Bartlomiej Zolnierkiewicz

ide: workaround for bogus gcc warning in ide_sysfs_register_port()

Reported-by: N"Steven Noonan" <steven@uplinklabs.net>
Suggested-by: N"Elias Oltmanns" <eo@nebensachen.de>
Cc: mingo@elte.hu
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 f3e85ee7
......@@ -1492,7 +1492,7 @@ static struct device_attribute *ide_port_attrs[] = {
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++) {
rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册