aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-11-30 13:14:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-02 19:50:08 -0500
commitbd0f483c873725148c8a54f58f174507a74c4815 (patch)
tree1d70e237d82a619dbf70ca3afeaf6f6e65cc4fe3
parent0a005d59c04551bfdcc53b2a71473d603d62d066 (diff)
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>
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset_main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c
index c8f7beaac87a..7e6be32cf7bb 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset_main.c
+++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c
@@ -1940,7 +1940,6 @@ static HOSTADDRESS controlvm_get_channel_address(void)
1940static void 1940static void
1941controlvm_periodic_work(struct work_struct *work) 1941controlvm_periodic_work(struct work_struct *work)
1942{ 1942{
1943 struct visorchipset_channel_info chanInfo;
1944 struct controlvm_message inmsg; 1943 struct controlvm_message inmsg;
1945 BOOL gotACommand = FALSE; 1944 BOOL gotACommand = FALSE;
1946 BOOL handle_command_failed = FALSE; 1945 BOOL handle_command_failed = FALSE;
@@ -1955,8 +1954,6 @@ controlvm_periodic_work(struct work_struct *work)
1955 if (visorchipset_clientregwait && !clientregistered) 1954 if (visorchipset_clientregwait && !clientregistered)
1956 goto Away; 1955 goto Away;
1957 1956
1958 memset(&chanInfo, 0, sizeof(struct visorchipset_channel_info));
1959
1960 Poll_Count++; 1957 Poll_Count++;
1961 if (Poll_Count >= 250) 1958 if (Poll_Count >= 250)
1962 ; /* keep going */ 1959 ; /* keep going */