staging: unisys: fix spacing in uisutils.c
Fix as many spacing problems as possible by indenting lines properly and getting rid of spaces between typecasts and their targets. Signed-off-by: Bryan Thompson <bryan.thompson@unisys.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
10ae5fad71
commit
6791b8c4d2
1 changed files with 7 additions and 7 deletions
|
@ -48,7 +48,7 @@ atomic_t uisutils_registered_services = ATOMIC_INIT(0);
|
|||
|
||||
int
|
||||
uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining,
|
||||
char *format, ...)
|
||||
char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
int len;
|
||||
|
@ -95,7 +95,7 @@ uisctrl_register_req_handler(int type, void *fptr,
|
|||
}
|
||||
if (chipset_driver_info)
|
||||
bus_device_info_init(chipset_driver_info, "chipset", "uislib",
|
||||
VERSION, NULL);
|
||||
VERSION, NULL);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ uisctrl_register_req_handler_ex(uuid_le switch_uuid,
|
|||
if (rc) {
|
||||
if (chipset_driver_info)
|
||||
bus_device_info_init(chipset_driver_info, "chipset",
|
||||
"uislib", VERSION, NULL);
|
||||
"uislib", VERSION, NULL);
|
||||
} else
|
||||
LOGERR("failed to register type %pUL.\n", &switch_uuid);
|
||||
|
||||
|
@ -163,7 +163,7 @@ uisctrl_unregister_req_handler_ex(uuid_le switch_uuid)
|
|||
LOGINF("type=%pUL.\n", &switch_uuid);
|
||||
if (req_handler_del(switch_uuid) < 0) {
|
||||
LOGERR("failed to remove %pUL from server list\n",
|
||||
&switch_uuid);
|
||||
&switch_uuid);
|
||||
goto Away;
|
||||
}
|
||||
atomic_dec(&uisutils_registered_services);
|
||||
|
@ -213,10 +213,10 @@ uisutil_copy_fragsinfo_from_skb(unsigned char *calling_ctx, void *skb_in,
|
|||
frags[count].pi_pfn =
|
||||
page_to_pfn(virt_to_page(skb->data + offset));
|
||||
frags[count].pi_off =
|
||||
(unsigned long) (skb->data + offset) & PI_PAGE_MASK;
|
||||
(unsigned long)(skb->data + offset) & PI_PAGE_MASK;
|
||||
size =
|
||||
min(firstfraglen,
|
||||
(unsigned int) (PI_PAGE_SIZE - frags[count].pi_off));
|
||||
(unsigned int)(PI_PAGE_SIZE - frags[count].pi_off));
|
||||
/* can take smallest of firstfraglen(what's left) OR
|
||||
* bytes left in the page
|
||||
*/
|
||||
|
@ -230,7 +230,7 @@ uisutil_copy_fragsinfo_from_skb(unsigned char *calling_ctx, void *skb_in,
|
|||
|
||||
if ((count + numfrags) > frags_max) {
|
||||
LOGERR("**** FAILED %s frags array too small: max:%d count+nr_frags:%d\n",
|
||||
calling_ctx, frags_max, count + numfrags);
|
||||
calling_ctx, frags_max, count + numfrags);
|
||||
return -1; /* failure */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue