mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
vfio: platform: remove needless stack usage
request_module already takes format strings, so no need to duplicate the effort. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
This commit is contained in:
parent
7d10f4e079
commit
7200be7c81
1 changed files with 1 additions and 4 deletions
|
|
@ -51,13 +51,10 @@ static vfio_platform_reset_fn_t vfio_platform_lookup_reset(const char *compat,
|
|||
|
||||
static void vfio_platform_get_reset(struct vfio_platform_device *vdev)
|
||||
{
|
||||
char modname[256];
|
||||
|
||||
vdev->reset = vfio_platform_lookup_reset(vdev->compat,
|
||||
&vdev->reset_module);
|
||||
if (!vdev->reset) {
|
||||
snprintf(modname, 256, "vfio-reset:%s", vdev->compat);
|
||||
request_module(modname);
|
||||
request_module("vfio-reset:%s", vdev->compat);
|
||||
vdev->reset = vfio_platform_lookup_reset(vdev->compat,
|
||||
&vdev->reset_module);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue