Displaying 2 results from an estimated 2 matches for "n980".
Did you mean:
1980
2020 Jul 10
0
[PATCH] scsi: virtio_scsi: Remove unnecessary condition checks
...style aspects
> for the implementation of the function ?init?.
> https://elixir.bootlin.com/linux/v5.8-rc4/source/drivers/scsi/virtio_scsi.c#L980
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/scsi/virtio_scsi.c?id=42f82040ee66db13525dc6f14b8559890b2f4c1c#n980
>
> if (!virtscsi_cmd_cache) {
> pr_err("kmem_cache_create() for virtscsi_cmd_cache failed\n");
> - goto error;
> + return -ENOMEM;
> }
Could be doable, but I don't see a particular benefit. Having a single
error loop is an advantage by itself.
The coding...
2020 Jul 10
0
[PATCH] scsi: virtio_scsi: Remove unnecessary condition checks
On 10/07/20 09:40, Markus Elfring wrote:
>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/scsi/virtio_scsi.c?id=42f82040ee66db13525dc6f14b8559890b2f4c1c#n980
>>>
>>> if (!virtscsi_cmd_cache) {
>>> pr_err("kmem_cache_create() for virtscsi_cmd_cache failed\n");
>>> - goto error;
>>> + return -ENOMEM;
>>> }
>>
>> Could be doable, but I don't see a particular benefit.
&...