staging: unisys: remove unused functions from uislib.c
authorBenjamin Romer <benjamin.romer@unisys.com>
Wed, 5 Nov 2014 17:47:50 +0000 (12:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Nov 2014 19:53:04 +0000 (11:53 -0800)
Delete uislib_client_add_vnic() and uislib_client_delete_vnic(), since these
are never used.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/uislib/uislib.c

index 354b6827bac418289a17b4eb75b8ae31daadf8cf..7c87452a9f14d5660e9fcd7e1827640d31cbb981 100644 (file)
@@ -1083,82 +1083,6 @@ uislib_client_inject_del_vnic(u32 bus_no, u32 dev_no)
 }
 EXPORT_SYMBOL_GPL(uislib_client_inject_del_vnic);
 
-static int
-uislib_client_add_vnic(u32 busNo)
-{
-       BOOL busCreated = FALSE;
-       int devNo = 0;          /* Default to 0, since only one device
-                                * will be created for this bus... */
-       struct controlvm_message msg;
-
-       init_msg_header(&msg, CONTROLVM_BUS_CREATE, 0, 0);
-       msg.hdr.flags.test_message = 1;
-       msg.cmd.create_bus.bus_no = busNo;
-       msg.cmd.create_bus.dev_count = 4;
-       msg.cmd.create_bus.channel_addr = 0;
-       msg.cmd.create_bus.channel_bytes = 0;
-       if (create_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
-               LOGERR("client create_bus failed");
-               return 0;
-       }
-       busCreated = TRUE;
-
-       init_msg_header(&msg, CONTROLVM_DEVICE_CREATE, 0, 0);
-       msg.hdr.flags.test_message = 1;
-       msg.cmd.create_device.bus_no = busNo;
-       msg.cmd.create_device.dev_no = devNo;
-       msg.cmd.create_device.dev_inst_uuid = NULL_UUID_LE;
-       memset(&msg.cmd.create_device.intr, 0, sizeof(struct irq_info));
-       msg.cmd.create_device.channel_addr = PhysicalDataChan;
-       msg.cmd.create_device.channel_bytes = MIN_IO_CHANNEL_SIZE;
-       msg.cmd.create_device.data_type_uuid = spar_vnic_channel_protocol_uuid;
-       if (create_device(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
-               LOGERR("client create_device failed");
-               goto AwayCleanup;
-       }
-
-       return 1;
-
-AwayCleanup:
-       if (busCreated) {
-               init_msg_header(&msg, CONTROLVM_BUS_DESTROY, 0, 0);
-               msg.hdr.flags.test_message = 1;
-               msg.cmd.destroy_bus.bus_no = busNo;
-               if (destroy_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS)
-                       LOGERR("client destroy_bus failed.\n");
-       }
-
-       return 0;
-}                              /* end uislib_client_add_vnic */
-EXPORT_SYMBOL_GPL(uislib_client_add_vnic);
-
-static int
-uislib_client_delete_vnic(u32 busNo)
-{
-       int devNo = 0;          /* Default to 0, since only one device
-                                * will be created for this bus... */
-       struct controlvm_message msg;
-
-       init_msg_header(&msg, CONTROLVM_DEVICE_DESTROY, 0, 0);
-       msg.hdr.flags.test_message = 1;
-       msg.cmd.destroy_device.bus_no = busNo;
-       msg.cmd.destroy_device.dev_no = devNo;
-       if (destroy_device(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
-               /* Don't error exit - try to see if bus can be destroyed... */
-               LOGERR("client destroy_device failed.\n");
-       }
-
-       init_msg_header(&msg, CONTROLVM_BUS_DESTROY, 0, 0);
-       msg.hdr.flags.test_message = 1;
-       msg.cmd.destroy_bus.bus_no = busNo;
-       if (destroy_bus(&msg, NULL) != CONTROLVM_RESP_SUCCESS)
-               LOGERR("client destroy_bus failed.\n");
-
-       return 1;
-}
-EXPORT_SYMBOL_GPL(uislib_client_delete_vnic);
-/* end client_delete_vnic */
-
 void *
 uislib_cache_alloc(struct kmem_cache *cur_pool, char *fn, int ln)
 {
This page took 0.026357 seconds and 5 git commands to generate.