Make some state that is boolean in nature, a boolean variable.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
*/
struct mousevsc_dev {
struct hv_device *device;
*/
struct mousevsc_dev {
struct hv_device *device;
- unsigned char init_complete;
struct mousevsc_prt_msg protocol_req;
struct mousevsc_prt_msg protocol_resp;
/* Synchronize the request/response if needed */
struct mousevsc_prt_msg protocol_req;
struct mousevsc_prt_msg protocol_resp;
/* Synchronize the request/response if needed */
unsigned char *report_desc;
u32 report_desc_size;
struct hv_input_dev_info hid_dev_info;
unsigned char *report_desc;
u32 report_desc_size;
struct hv_input_dev_info hid_dev_info;
struct hid_device *hid_device;
};
struct hid_device *hid_device;
};
if (!hidinput_connect(hid_dev, 0)) {
hid_dev->claimed |= HID_CLAIMED_INPUT;
if (!hidinput_connect(hid_dev, 0)) {
hid_dev->claimed |= HID_CLAIMED_INPUT;
- input_device->connected = 1;
+ input_device->connected = true;
if (input_dev->connected) {
hidinput_disconnect(input_dev->hid_device);
if (input_dev->connected) {
hidinput_disconnect(input_dev->hid_device);
- input_dev->connected = 0;
+ input_dev->connected = false;
hid_destroy_device(input_dev->hid_device);
}
hid_destroy_device(input_dev->hid_device);
}