udev/cdrom: drop never hit condition
This commit is contained in:
parent
0dd6189f8c
commit
2af5ad50d1
|
@ -688,8 +688,6 @@ static int cd_media_toc(Context *c) {
|
||||||
|
|
||||||
if (len > sizeof(toc))
|
if (len > sizeof(toc))
|
||||||
return -1;
|
return -1;
|
||||||
if (len < 2)
|
|
||||||
return -1;
|
|
||||||
/* empty media has no tracks */
|
/* empty media has no tracks */
|
||||||
if (len < 8)
|
if (len < 8)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue