Commit 2ed43e53 authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Greg Kroah-Hartman

platform: goldfish: pipe: Remove a redundant variable

The variable was not very useful.
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46928cc6
...@@ -779,7 +779,6 @@ static struct miscdevice goldfish_pipe_miscdev = { ...@@ -779,7 +779,6 @@ static struct miscdevice goldfish_pipe_miscdev = {
static int goldfish_pipe_device_init(struct platform_device *pdev) static int goldfish_pipe_device_init(struct platform_device *pdev)
{ {
struct goldfish_pipe_dev *dev = &goldfish_pipe_dev; struct goldfish_pipe_dev *dev = &goldfish_pipe_dev;
char *page;
int err = devm_request_irq(&pdev->dev, dev->irq, int err = devm_request_irq(&pdev->dev, dev->irq,
goldfish_pipe_interrupt, goldfish_pipe_interrupt,
IRQF_SHARED, "goldfish_pipe", dev); IRQF_SHARED, "goldfish_pipe", dev);
...@@ -809,12 +808,12 @@ static int goldfish_pipe_device_init(struct platform_device *pdev) ...@@ -809,12 +808,12 @@ static int goldfish_pipe_device_init(struct platform_device *pdev)
* is to just allocate a page and place the buffers in it. * is to just allocate a page and place the buffers in it.
*/ */
BUILD_BUG_ON(sizeof(struct goldfish_pipe_dev_buffers) > PAGE_SIZE); BUILD_BUG_ON(sizeof(struct goldfish_pipe_dev_buffers) > PAGE_SIZE);
page = (char *)__get_free_page(GFP_KERNEL); dev->buffers = (struct goldfish_pipe_dev_buffers *)
if (!page) { __get_free_page(GFP_KERNEL);
if (!dev->buffers) {
kfree(dev->pipes); kfree(dev->pipes);
return -ENOMEM; return -ENOMEM;
} }
dev->buffers = (struct goldfish_pipe_dev_buffers *)page;
/* Send the buffer addresses to the host */ /* Send the buffer addresses to the host */
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment