mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-08 02:21:18 +00:00
staging: unisys: Fix up a few cases of bad formatting
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7023638c46
commit
5981cc9957
@ -99,7 +99,7 @@ visorchipset_mmap(struct file *file, struct vm_area_struct *vma)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static long visorchipset_ioctl(struct file *file, unsigned int cmd,
|
static long visorchipset_ioctl(struct file *file, unsigned int cmd,
|
||||||
unsigned long arg)
|
unsigned long arg)
|
||||||
{
|
{
|
||||||
s64 adjustment;
|
s64 adjustment;
|
||||||
s64 vrtc_offset;
|
s64 vrtc_offset;
|
||||||
@ -108,14 +108,14 @@ static long visorchipset_ioctl(struct file *file, unsigned int cmd,
|
|||||||
case VMCALL_QUERY_GUEST_VIRTUAL_TIME_OFFSET:
|
case VMCALL_QUERY_GUEST_VIRTUAL_TIME_OFFSET:
|
||||||
/* get the physical rtc offset */
|
/* get the physical rtc offset */
|
||||||
vrtc_offset = issue_vmcall_query_guest_virtual_time_offset();
|
vrtc_offset = issue_vmcall_query_guest_virtual_time_offset();
|
||||||
if (copy_to_user
|
if (copy_to_user((void __user *)arg, &vrtc_offset,
|
||||||
((void __user *)arg, &vrtc_offset, sizeof(vrtc_offset))) {
|
sizeof(vrtc_offset))) {
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
case VMCALL_UPDATE_PHYSICAL_TIME:
|
case VMCALL_UPDATE_PHYSICAL_TIME:
|
||||||
if (copy_from_user
|
if (copy_from_user(&adjustment, (void __user *)arg,
|
||||||
(&adjustment, (void __user *)arg, sizeof(adjustment))) {
|
sizeof(adjustment))) {
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
return issue_vmcall_update_physical_time(adjustment);
|
return issue_vmcall_update_physical_time(adjustment);
|
||||||
|
Loading…
Reference in New Issue
Block a user