struct scsi_cmnd *cmd;
 
        cmd = state->current_req;
-       if (cmd != 0) {
+       if (cmd) {
                cmd->result = result;
                (*cmd->scsi_done)(cmd);
                state->current_req = NULL;
                dma_cmd_space = kmalloc_array(host->sg_tablesize + 2,
                                             sizeof(struct dbdma_cmd),
                                             GFP_KERNEL);
-               if (dma_cmd_space == 0) {
-                       printk(KERN_ERR "mac53c94: couldn't allocate dma "
-                              "command space for %pOF\n", node);
+       if (!dma_cmd_space) {
+               printk(KERN_ERR "mac53c94: couldn't allocate dma "
+                      "command space for %pOF\n", node);
                rc = -ENOMEM;
-                       goto out_free;
-               }
+               goto out_free;
+       }
+
        state->dma_cmds = (struct dbdma_cmd *)DBDMA_ALIGN(dma_cmd_space);
        memset(state->dma_cmds, 0, (host->sg_tablesize + 1)
               * sizeof(struct dbdma_cmd));