Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
fw = carlfw_load(args[1]);
if (IS_ERR_OR_NULL(fw)) {
+ err = PTR_ERR(fw);
fprintf(stderr, "Failed to open file \"%s\" (%d).\n",
- args[1], (int) PTR_ERR(fw));
+ args[1], err);
goto out;
}
fw = carlfw_load(args[1]);
if (IS_ERR_OR_NULL(fw)) {
+ err = PTR_ERR(fw);
fprintf(stderr, "Failed to open file \"%s\" (%d).\n",
- args[1], (int) PTR_ERR(fw));
+ args[1], err);
goto out;
}
fw = carlfw_load(args[1]);
if (IS_ERR_OR_NULL(fw)) {
+ err = PTR_ERR(fw);
fprintf(stderr, "Failed to open firmware \"%s\" (%d).\n",
- args[1], (int)PTR_ERR(fw));
+ args[1], err);
goto out;
}