d/patches: fix two issues with the /lib/firmware/updates support
Fix two issues introduced by the /lib/firmware/updates support:
- Properly handle
opendir
return code - Don't call
dirname
twice.
Fix two issues introduced by the /lib/firmware/updates support:
opendir
return codedirname
twice.