tree-wide: Add+run spatch to use glnx_throw()
I had to run a sed job to add whitespace after, but otherwise this was easy. Closes: #890 Approved by: jlebon
This commit is contained in:
1 parent
9bf8a8503a
commit
88a1fc92a9
11 files changed
+40
-43
No files matched your search
@@ -1028,9 +1028,9 @@ checksum_from_kernel_src (const char *name,
|
||||
const char *last_dash = strrchr (name, '-');
|
||||
if (!last_dash)
|
||||
{
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||
"Malformed kernel/initramfs name '%s', missing '-'", name);
|
||||
return FALSE;
|
||||
return glnx_throw (error,
|
||||
"Malformed kernel/initramfs name '%s', missing '-'",
|
||||
name);
|
||||
}
|
||||
*out_checksum = g_strdup (last_dash + 1);
|
||||
return TRUE;
|
||||
|
||||
Reference in new issue
Block a user