u8 tool_action;
        int ret;
 
-       if (kstrtou8(buf, 10, &tool_action) != 0)
+       if (kstrtou8(buf, 10, &tool_action))
                return -EINVAL;
 
        ret = visorchannel_write(controlvm_channel,
        int val, ret;
        struct efi_spar_indication efi_spar_indication;
 
-       if (kstrtoint(buf, 10, &val) != 0)
+       if (kstrtoint(buf, 10, &val))
                return -EINVAL;
 
        efi_spar_indication.boot_to_tool = val;
        u32 error;
        int ret;
 
-       if (kstrtou32(buf, 10, &error) != 0)
+       if (kstrtou32(buf, 10, &error))
                return -EINVAL;
 
        ret = visorchannel_write(controlvm_channel,
        u32 text_id;
        int ret;
 
-       if (kstrtou32(buf, 10, &text_id) != 0)
+       if (kstrtou32(buf, 10, &text_id))
                return -EINVAL;
 
        ret = visorchannel_write(controlvm_channel,
        u16 remaining_steps;
        int ret;
 
-       if (kstrtou16(buf, 10, &remaining_steps) != 0)
+       if (kstrtou16(buf, 10, &remaining_steps))
                return -EINVAL;
 
        ret = visorchannel_write(controlvm_channel,
         * within our OS-controlled memory.  We need to know that, because it
         * makes a difference in how we compute the virtual address.
         */
-       if (parm_addr != 0 && parm_bytes != 0) {
+       if (parm_addr && parm_bytes) {
                bool retry = false;
 
                parser_ctx =
        }
 
        /* reuse IOVM create bus message */
-       if (local_crash_bus_msg.cmd.create_bus.channel_addr != 0) {
+       if (local_crash_bus_msg.cmd.create_bus.channel_addr) {
                bus_create(&local_crash_bus_msg);
        } else {
                POSTCODE_LINUX_2(CRASH_DEV_BUS_NULL_FAILURE_PC,
        }
 
        /* reuse create device message for storage device */
-       if (local_crash_dev_msg.cmd.create_device.channel_addr != 0) {
+       if (local_crash_dev_msg.cmd.create_device.channel_addr) {
                my_device_create(&local_crash_dev_msg);
        } else {
                POSTCODE_LINUX_2(CRASH_DEV_DEV_NULL_FAILURE_PC,
        if (sscanf(buf, "%63s", msgtype) != 1)
                return -EINVAL;
 
-       if (strcmp(msgtype, "CALLHOMEDISK_MOUNTED") == 0) {
+       if (!strcmp(msgtype, "CALLHOMEDISK_MOUNTED")) {
                chipset_events[0] = 1;
                return count;
-       } else if (strcmp(msgtype, "MODULES_LOADED") == 0) {
+       } else if (!strcmp(msgtype, "MODULES_LOADED")) {
                chipset_events[1] = 1;
                return count;
        }
 {
        unsigned int id;
 
-       if (kstrtouint(buf, 10, &id) != 0)
+       if (kstrtouint(buf, 10, &id))
                return -EINVAL;
 
        parahotplug_request_complete(id, 0);
 {
        unsigned int id;
 
-       if (kstrtouint(buf, 10, &id) != 0)
+       if (kstrtouint(buf, 10, &id))
                return -EINVAL;
 
        parahotplug_request_complete(id, 1);
        }
 
        addr = controlvm_get_channel_address();
-       if (addr != 0) {
+       if (addr) {
                controlvm_channel =
                    visorchannel_create_with_lock
                    (addr,