Re: [PATCH v4 4/5] libtracefs: Option's bit masks to be owned by the instance

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

 



On Fri,  9 Apr 2021 21:04:22 +0300
"Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote:

> +__hidden inline struct tracefs_options_mask *
> +supported_opts_mask(struct tracefs_instance *instance)
> +{
> +	return instance? &instance->supported_opts : &toplevel_supported_opts;
> +}
> +
> +__hidden inline struct tracefs_options_mask *
> +enabled_opts_mask(struct tracefs_instance *instance)
> +{
> +	return instance? &instance->enabled_opts : &toplevel_enabled_opts;
> +}

I'll fix this up, but for the future, there should be a space between the
condition and the "?".

	return instance ? &instance->supported_opts : &toplevel_supported_opts;

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux