[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200325184110.GD11304@nanopsycho.orion>
Date: Wed, 25 Mar 2020 19:41:10 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Jacob Keller <jacob.e.keller@...el.com>, netdev@...r.kernel.org
Subject: Re: [PATCH 08/10] devlink: implement DEVLINK_CMD_REGION_NEW
Wed, Mar 25, 2020 at 06:46:41PM CET, kuba@...nel.org wrote:
>On Wed, 25 Mar 2020 18:20:36 +0100 Jiri Pirko wrote:
>> Wed, Mar 25, 2020 at 06:18:04PM CET, kuba@...nel.org wrote:
>> >On Wed, 25 Mar 2020 17:46:22 +0100 Jiri Pirko wrote:
>> >> >+ err = region->ops->snapshot(devlink, info->extack, &data);
>> >> >+ if (err)
>> >> >+ goto err_decrement_snapshot_count;
>> >> >+
>> >> >+ err = __devlink_region_snapshot_create(region, data, snapshot_id);
>> >> >+ if (err)
>> >> >+ goto err_free_snapshot_data;
>> >> >+
>> >> >+ return 0;
>> >> >+
>> >> >+err_decrement_snapshot_count:
>> >> >+ __devlink_snapshot_id_decrement(devlink, snapshot_id);
>> >> >+err_free_snapshot_data:
>> >>
>> >> In devlink the error labers are named according to actions that failed.
>> >
>> >Can we leave this to the author of the code to decide?
>>
>> Well, if you look at 1 .c file, the reader should see one style. So...
>
>Fine :)
You know, consistency is important. That is all I care about really :)
Powered by blists - more mailing lists