mirror of
https://github.com/fpganinja/taxi.git
synced 2026-04-07 04:38:42 -07:00
cndm: Do not print empty serial number
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -212,7 +212,7 @@ static int cndm_common_probe(struct cndm_dev *cdev)
|
||||
dev_info(dev, "Read HW IDs");
|
||||
|
||||
ret = cndm_hwid_sn_rd(cdev, NULL, &cdev->sn_str);
|
||||
if (ret) {
|
||||
if (ret || !strlen(cdev->sn_str)) {
|
||||
dev_info(dev, "No readable serial number");
|
||||
} else {
|
||||
dev_info(dev, "SN: %s", cdev->sn_str);
|
||||
|
||||
Reference in New Issue
Block a user