udev/scsi: use the scsi device type number directly
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 Jun 2021 06:04:12 +0000 (15:04 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 Jun 2021 11:31:19 +0000 (13:31 +0200)
commit4dce1b9f059733ed9a263fba7cfa12704e96794a
tree5d2ba1f60312acb54cc2cf458e03daa5da7b45f1
parent7875170f01991a1d28cfe284cc7075630cd69055
udev/scsi: use the scsi device type number directly

Previously, the value is once stringified, and later again parsed,
that is completely redundant.

Follow-up for 1001167ca5e4cfdc6230562e4fb9029e5f624d53.

Replaces #20013.
src/udev/scsi_id/scsi_id.c
src/udev/scsi_id/scsi_id.h
src/udev/scsi_id/scsi_serial.c