};
 
 /**
- *     ata_rwcmd_protocol - set taskfile r/w commands and protocol
- *     @tf: command to examine and configure
- *     @dev: device tf belongs to
+ *     ata_set_rwcmd_protocol - set taskfile r/w command and protocol
+ *     @dev: target device for the taskfile
+ *     @tf: taskfile to examine and configure
  *
- *     Examine the device configuration and tf->flags to calculate
- *     the proper read/write commands and protocol to use.
+ *     Examine the device configuration and tf->flags to determine
+ *     the proper read/write command and protocol to use for @tf.
  *
  *     LOCKING:
  *     caller.
  */
-static int ata_rwcmd_protocol(struct ata_taskfile *tf, struct ata_device *dev)
+static bool ata_set_rwcmd_protocol(struct ata_device *dev,
+                                  struct ata_taskfile *tf)
 {
        u8 cmd;
 
        }
 
        cmd = ata_rw_cmds[index + fua + lba48 + write];
-       if (cmd) {
-               tf->command = cmd;
-               return 0;
-       }
-       return -1;
+       if (!cmd)
+               return false;
+
+       tf->command = cmd;
+
+       return true;
 }
 
 /**
                        /* request too large even for LBA48 */
                        return -ERANGE;
 
-               if (unlikely(ata_rwcmd_protocol(tf, dev) < 0))
+               if (unlikely(!ata_set_rwcmd_protocol(dev, tf)))
                        return -EINVAL;
 
                tf->nsect = n_block & 0xff;
                if (!lba_28_ok(block, n_block))
                        return -ERANGE;
 
-               if (unlikely(ata_rwcmd_protocol(tf, dev) < 0))
+               if (unlikely(!ata_set_rwcmd_protocol(dev, tf)))
                        return -EINVAL;
 
                /* Convert LBA to CHS */