summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier M. Mellid <jmunhoz@igalia.com>2012-09-17 16:12:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-17 14:57:52 -0700
commit20d471c447d5fede8d0d2b3618450d9ab8d82da9 (patch)
tree0c11cde2c21e020a8e9f0562ce5b61906663d99a
parent9f6fe04326da5036ab0d01553eacabe9b21d47ae (diff)
downloadlinux-3.10-20d471c447d5fede8d0d2b3618450d9ab8d82da9.tar.gz
linux-3.10-20d471c447d5fede8d0d2b3618450d9ab8d82da9.tar.bz2
linux-3.10-20d471c447d5fede8d0d2b3618450d9ab8d82da9.zip
staging: sm7xxfb: cleanup on smtc_alloc_fb_info
This patch improves code legibility after last changes. Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/sm7xxfb/sm7xxfb.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c
index f6ecac35d49..5ad52b9204b 100644
--- a/drivers/staging/sm7xxfb/sm7xxfb.c
+++ b/drivers/staging/sm7xxfb/sm7xxfb.c
@@ -679,7 +679,7 @@ static struct fb_ops smtcfb_ops = {
};
/*
- * alloc struct smtcfb_info and assign the default value
+ * alloc struct smtcfb_info and assign default values
*/
static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
{
@@ -692,18 +692,12 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
sfb->pdev = pdev;
- /* init sfb->fb with default value */
-
- sfb->fb.flags = FBINFO_FLAG_DEFAULT;
- sfb->fb.fbops = &smtcfb_ops;
-
- sfb->fb.fix = smtcfb_fix;
-
- sfb->fb.var = smtcfb_var;
-
- sfb->fb.pseudo_palette = sfb->colreg;
-
- sfb->fb.par = sfb;
+ sfb->fb.flags = FBINFO_FLAG_DEFAULT;
+ sfb->fb.fbops = &smtcfb_ops;
+ sfb->fb.fix = smtcfb_fix;
+ sfb->fb.var = smtcfb_var;
+ sfb->fb.pseudo_palette = sfb->colreg;
+ sfb->fb.par = sfb;
return sfb;
}