Re: [PATCH 3/7] [SCSI] scst: Add scst_local driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 28, 2010 at 10:51 AM, Konrad Rzeszutek Wilk
<konrad@xxxxxxxxxx> wrote:
> On Monday 20
>> +#define TRUE 1
>> +#define FALSE 0
>
> can't you use 'true' or 'false'?

When I first wrote that I did not know if those symbols were
available. Probably better to change them now that I know it is.

> .. snip..
>> +static int scst_local_get_sas_transport_id(struct scst_local_sess *sess,
>> +     uint8_t **transport_id, int *len)
>> +{
>> +     int res = 0;
>> +     int tr_id_size = 0;
>> +     uint8_t *tr_id = NULL;
>> +
>> +     tr_id_size = 24;  /* A SAS TransportID */
>> +
>> +     tr_id = kzalloc(tr_id_size, GFP_KERNEL);
>> +     if (tr_id == NULL) {
>> +             PRINT_ERROR("Allocation of TransportID (size %d) failed",
>> +                     tr_id_size);
>
> pr_err? Or is this based on a module parameter?

PRINT_ERROR is an SCST macro ... will have to let Bart or Vlad answer that one.

>> +             res = -ENOMEM;
>> +             goto out;
>> +     }
>> +
>> +     tr_id[0] = 0x00 | SCSI_TRANSPORTID_PROTOCOLID_SAS;
>
> Hmm, why the 0x00? Can't you just do an assigment?

Yes, that would be better.

Thanks for your feedback.

-- 
Regards,
Richard Sharpe
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux