[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/14] Remove unused argument for check_for_block_si
From: |
Jes . Sorensen |
Subject: |
[Qemu-devel] [PATCH 05/14] Remove unused argument for check_for_block_signature() |
Date: |
Mon, 30 Aug 2010 17:59:11 +0200 |
From: Jes Sorensen <address@hidden>
Signed-off-by: Jes Sorensen <address@hidden>
---
block/raw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/raw.c b/block/raw.c
index 61e6748..fc057d0 100644
--- a/block/raw.c
+++ b/block/raw.c
@@ -12,7 +12,7 @@ static int raw_open(BlockDriverState *bs, int flags)
/* check for the user attempting to write something that looks like a
block format header to the beginning of the image and fail out.
*/
-static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf)
+static int check_for_block_signature(const uint8_t *buf)
{
static const uint8_t signatures[][4] = {
{ 'Q', 'F', 'I', 0xfb }, /* qcow/qcow2 */
@@ -42,7 +42,7 @@ static int check_write_unsafe(BlockDriverState *bs, int64_t
sector_num,
}
if (sector_num == 0 && nb_sectors > 0) {
- return check_for_block_signature(bs, buf);
+ return check_for_block_signature(buf);
}
return 0;
--
1.7.2.2
- [Qemu-devel] [PATCH 00/14] gcc extra warning fixes v2, Jes . Sorensen, 2010/08/30
- [Qemu-devel] [PATCH 13/14] Change DPRINTF() to do{}while(0) to avoid compiler warning, Jes . Sorensen, 2010/08/30
- [Qemu-devel] [PATCH 05/14] Remove unused argument for check_for_block_signature(),
Jes . Sorensen <=
- [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Anthony Liguori, 2010/08/30
- [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Paolo Bonzini, 2010/08/30
- [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Jes Sorensen, 2010/08/30
- [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Anthony Liguori, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Richard Henderson, 2010/08/30
- [Qemu-devel] Re: [PATCH 05/14] Remove unused argument for check_for_block_signature(), Jes Sorensen, 2010/08/31
[Qemu-devel] [PATCH 11/14] Remove unused function arguments, Jes . Sorensen, 2010/08/30
[Qemu-devel] [PATCH 10/14] Zero json struct with memset() instea of = {} to keep compiler happy., Jes . Sorensen, 2010/08/30
[Qemu-devel] [PATCH 09/14] Remove unused arguments for add_aio_request() and free_aio_req(), Jes . Sorensen, 2010/08/30
[Qemu-devel] [PATCH 01/14] Remove unused argument for nbd_client(), Jes . Sorensen, 2010/08/30