mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
staging: unisys: remove unneeded structure
Delete a local structure that is only used to be initialized by memset. A semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ identifier x,i; @@ { ... when any -struct i x; <+... when != x - memset(&x,...); ...+> } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0a005d59c0
commit
bd0f483c87
@ -1940,7 +1940,6 @@ static HOSTADDRESS controlvm_get_channel_address(void)
|
|||||||
static void
|
static void
|
||||||
controlvm_periodic_work(struct work_struct *work)
|
controlvm_periodic_work(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct visorchipset_channel_info chanInfo;
|
|
||||||
struct controlvm_message inmsg;
|
struct controlvm_message inmsg;
|
||||||
BOOL gotACommand = FALSE;
|
BOOL gotACommand = FALSE;
|
||||||
BOOL handle_command_failed = FALSE;
|
BOOL handle_command_failed = FALSE;
|
||||||
@ -1955,8 +1954,6 @@ controlvm_periodic_work(struct work_struct *work)
|
|||||||
if (visorchipset_clientregwait && !clientregistered)
|
if (visorchipset_clientregwait && !clientregistered)
|
||||||
goto Away;
|
goto Away;
|
||||||
|
|
||||||
memset(&chanInfo, 0, sizeof(struct visorchipset_channel_info));
|
|
||||||
|
|
||||||
Poll_Count++;
|
Poll_Count++;
|
||||||
if (Poll_Count >= 250)
|
if (Poll_Count >= 250)
|
||||||
; /* keep going */
|
; /* keep going */
|
||||||
|
Loading…
Reference in New Issue
Block a user