Skip to content

Commit

Permalink
staging: sm7xxfb: cleanup on smtc_alloc_fb_info
Browse files Browse the repository at this point in the history
This patch improves code legibility after last changes.

Signed-off-by: Javier M. Mellid <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
jmunhoz authored and gregkh committed Sep 17, 2012
1 parent 9f6fe04 commit 20d471c
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
}
Expand Down

0 comments on commit 20d471c

Please sign in to comment.