Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58da4950 authored by Pavel Machek's avatar Pavel Machek Committed by Jesper Juhl
Browse files

firmware_sample_driver.c: fix coding style



Fix coding style in firmware_sample_driver...

Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
parent 6f69a6d7
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -34,8 +34,7 @@ static void sample_probe_default(void)
        const struct firmware *fw_entry;
	printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");

        if(request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0)
	{
        if (request_firmware(&fw_entry, "sample_driver_fw", &ghost_device)!=0) {
		printk(KERN_ERR
		       "firmware_sample_driver: Firmware not available\n");
		return;
@@ -56,8 +55,7 @@ static void sample_probe_specific(void)

	printk(KERN_INFO "firmware_sample_driver: a ghost device got inserted :)\n");

        if(request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0)
	{
        if (request_firmware(NULL, "sample_driver_fw", &ghost_device)!=0) {
		printk(KERN_ERR
		       "firmware_sample_driver: Firmware load failed\n");
		return;
@@ -89,8 +87,7 @@ static void sample_probe_async(void)
					 "my device pointer",
					 sample_probe_async_cont);
	if (error) {
		printk(KERN_ERR 
		       "firmware_sample_driver:"
		printk(KERN_ERR "firmware_sample_driver:"
		       " request_firmware_nowait failed\n");
	}
}
@@ -105,6 +102,7 @@ static int sample_init(void)
	sample_probe_async();
	return 0;
}

static void __exit sample_exit(void)
{
}