Re: [PATCH v3 2/7] pm80xx: Add sysfs attribute to track RAAE count

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

 



On 3/29/21 11:40 PM, Viswas G wrote:
> +static ssize_t ctl_raae_count_show(struct device *cdev,
> +		struct device_attribute *attr, char *buf)
> +{
> +	struct Scsi_Host *shost = class_to_shost(cdev);
> +	struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost);
> +	struct pm8001_hba_info *pm8001_ha = sha->lldd_ha;
> +	unsigned int raaecnt;
> +	int c;
> +
> +	raaecnt = pm8001_mr32(pm8001_ha->general_stat_tbl_addr, 12);
> +	c = sysfs_emit(buf, "0x%08x\n", raaecnt);
> +	return c;
> +}

Please remove the variable 'c' from this patch and also from subsequent
patches.

Thanks,

Bart.



[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