staging: unisys: refactor delete_device_glue()
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 5 Dec 2014 22:09:00 +0000 (17:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Jan 2015 01:32:33 +0000 (17:32 -0800)
Fix the function declaration so it is a single line, and fix CamelCase
function parameter names:

busNo => bus_no
devNo => dev_no

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>
drivers/staging/unisys/uislib/uislib.c

index 328f16b2deacbd7f4e88e0f6d4c99e60a940dbbe..d25182299e30b842d15de5694a8b802f6854b686 100644 (file)
@@ -787,17 +787,16 @@ static int delete_bus_glue(u32 bus_no)
        return 1;
 }
 
-static int
-delete_device_glue(u32 busNo, u32 devNo)
+static int delete_device_glue(u32 bus_no, u32 dev_no)
 {
        struct controlvm_message msg;
 
        init_msg_header(&msg, CONTROLVM_DEVICE_DESTROY, 0, 0);
-       msg.cmd.destroy_device.bus_no = busNo;
-       msg.cmd.destroy_device.dev_no = devNo;
+       msg.cmd.destroy_device.bus_no = bus_no;
+       msg.cmd.destroy_device.dev_no = dev_no;
        if (destroy_device(&msg, NULL) != CONTROLVM_RESP_SUCCESS) {
-               LOGERR("destroy_device failed. busNo=0x%x devNo=0x%x\n", busNo,
-                      devNo);
+               LOGERR("destroy_device failed. bus_no=0x%x dev_no=0x%x\n",
+                      bus_no, dev_no);
                return 0;
        }
        return 1;