/*
- * Copyright 2010, Christian Lamparter <chunkeey@googlemail.com>
+ * Copyright 2010-2011 Christian Lamparter <chunkeey@googlemail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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;
}