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

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

 



On Monday 20 
> +#define TRUE 1
> +#define FALSE 0

can't you use 'true' or 'false'?
.. 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?

> +		res = -ENOMEM;
> +		goto out;
> +	}
> +
> +	tr_id[0] = 0x00 | SCSI_TRANSPORTID_PROTOCOLID_SAS;

Hmm, why the 0x00? Can't you just do an assigment?

--
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