Commit 39624f7e authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] drxk: Print an error if firmware is not loaded



If something bad happens during firmware load, an error
should be printed at dmesg.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent bcd2ebb7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1395,8 +1395,10 @@ static int DownloadMicrocode(struct drxk_state *state,
		}

		status = write_block(state, Address, BlockSize, pSrc);
		if (status < 0)
		if (status < 0) {
			printk(KERN_ERR "drxk: Error %d while loading firmware\n", status);
			break;
		}
		pSrc += BlockSize;
		offset += BlockSize;
	}