mirror of https://gitee.com/openkylin/linux.git
drm/gud: Remove unneeded semicolon
drivers/gpu/drm/gud/gud_connector.c:658:2-3: Unneeded semicolon
drivers/gpu/drm/gud/gud_connector.c:186:2-3: Unneeded semicolon
drivers/gpu/drm/gud/gud_drv.c:511:3-4: Unneeded semicolon
drivers/gpu/drm/gud/gud_pipe.c:127:4-5: Unneeded semicolon
Remove unneeded semicolon.
Generated by: scripts/coccinelle/misc/semicolon.cocci
Fixes: 40e1a70b4a
("drm: Add GUD USB Display driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
[fix subject and squash 3 per file patches]
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210322174434.58849-2-noralf@tronnes.org
This commit is contained in:
parent
b91fbdc1df
commit
166633c85c
|
@ -183,7 +183,7 @@ static int gud_connector_detect(struct drm_connector *connector,
|
||||||
default:
|
default:
|
||||||
ret = connector_status_unknown;
|
ret = connector_status_unknown;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (status & GUD_CONNECTOR_STATUS_CHANGED)
|
if (status & GUD_CONNECTOR_STATUS_CHANGED)
|
||||||
connector->epoch_counter += 1;
|
connector->epoch_counter += 1;
|
||||||
|
@ -655,7 +655,7 @@ static int gud_connector_create(struct gud_device *gdrm, unsigned int index,
|
||||||
default: /* future types */
|
default: /* future types */
|
||||||
connector_type = DRM_MODE_CONNECTOR_USB;
|
connector_type = DRM_MODE_CONNECTOR_USB;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
|
|
||||||
drm_connector_helper_add(connector, &gud_connector_helper_funcs);
|
drm_connector_helper_add(connector, &gud_connector_helper_funcs);
|
||||||
ret = drm_connector_init(drm, connector, &gud_connector_funcs, connector_type);
|
ret = drm_connector_init(drm, connector, &gud_connector_funcs, connector_type);
|
||||||
|
|
|
@ -508,7 +508,7 @@ static int gud_probe(struct usb_interface *intf, const struct usb_device_id *id)
|
||||||
case DRM_FORMAT_XRGB8888:
|
case DRM_FORMAT_XRGB8888:
|
||||||
xrgb8888_supported = true;
|
xrgb8888_supported = true;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
|
|
||||||
fmt_buf_size = drm_format_info_min_pitch(info, 0, drm->mode_config.max_width) *
|
fmt_buf_size = drm_format_info_min_pitch(info, 0, drm->mode_config.max_width) *
|
||||||
drm->mode_config.max_height;
|
drm->mode_config.max_height;
|
||||||
|
|
|
@ -124,7 +124,7 @@ static size_t gud_xrgb8888_to_color(u8 *dst, const struct drm_format_info *forma
|
||||||
default:
|
default:
|
||||||
WARN_ON_ONCE(1);
|
WARN_ON_ONCE(1);
|
||||||
return len;
|
return len;
|
||||||
};
|
}
|
||||||
|
|
||||||
*block |= pix << pixshift;
|
*block |= pix << pixshift;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue