diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-01-04 02:28:37 +0600 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-01-06 20:27:32 +0600 |
commit | 37a8ddc0dbf3fb7f059b689038979bace206dccf (patch) | |
tree | 092b132e655289af9875f1b63973b76d6c0d8f7e /hw/kdrive | |
parent | af1f1a05e1aa9ec921f1288818a66766c301f8b0 (diff) |
kdrive: Remove unused 'k' variable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/fbdev/fbdev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index cd904872b..b9c2b9670 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -35,7 +35,6 @@ char *fbdevDevicePath = NULL; Bool fbdevInitialize (KdCardInfo *card, FbdevPriv *priv) { - int k; unsigned long off; if (fbdevDevicePath == NULL) @@ -50,14 +49,14 @@ fbdevInitialize (KdCardInfo *card, FbdevPriv *priv) /* quiet valgrind */ memset (&priv->fix, '\0', sizeof (priv->fix)); - if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) { + if (ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix) < 0) { perror("Error with /dev/fb ioctl FIOGET_FSCREENINFO"); close (priv->fd); return FALSE; } /* quiet valgrind */ memset (&priv->var, '\0', sizeof (priv->var)); - if ((k=ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var)) < 0) { + if (ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var) < 0) { perror("Error with /dev/fb ioctl FIOGET_VSCREENINFO"); close (priv->fd); return FALSE; |