Skip to content

Commit

Permalink
staging: unisys: Remove wrapper around parser_init_guts()
Browse files Browse the repository at this point in the history
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jes Sorensen authored and Greg Kroah-Hartman committed May 8, 2015
1 parent cc55b5c commit fbf3553
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/staging/unisys/visorbus/visorchipset.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static void controlvm_respond_physdev_changestate(
static void parser_done(struct parser_context *ctx);

static struct parser_context *
parser_init_guts(u64 addr, u32 bytes, bool local, bool *retry)
parser_init_byte_stream(u64 addr, u32 bytes, bool local, bool *retry)
{
int allocbytes = sizeof(struct parser_context) + bytes;
struct parser_context *rc = NULL;
Expand Down Expand Up @@ -451,17 +451,6 @@ parser_init_guts(u64 addr, u32 bytes, bool local, bool *retry)
return rc;
}

/* Call this instead of parser_init() if the payload area consists of just
* a sequence of bytes, rather than a struct spar_controlvm_parameters_header
* structures. Afterwards, you can call parser_simpleString_get() or
* parser_byteStream_get() to obtain the data.
*/
static struct parser_context *
parser_init_byte_stream(u64 addr, u32 bytes, bool local, bool *retry)
{
return parser_init_guts(addr, bytes, local, retry);
}

static uuid_le
parser_id_get(struct parser_context *ctx)
{
Expand Down

0 comments on commit fbf3553

Please sign in to comment.