staging: sm750fb: remove assignment from if condition

Remove assignment from if condition according to checkpatch.pl message:
"ERROR: do not use assignment in if condition"

Signed-off-by: Anatoly Stepanov <drivengroove@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Anatoly Stepanov 2015-06-29 02:44:02 +03:00 committed by Greg Kroah-Hartman
parent 990e56663b
commit 9a52ae2dd8

View file

@ -43,8 +43,8 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev)
* in lynxfb_remove, or memory will not be mapped again * in lynxfb_remove, or memory will not be mapped again
* successfully * successfully
* */ * */
ret = pci_request_region(pdev, 1, "sm750fb");
if ((ret = pci_request_region(pdev, 1, "sm750fb"))) { if (ret) {
pr_err("Can not request PCI regions.\n"); pr_err("Can not request PCI regions.\n");
goto exit; goto exit;
} }
@ -77,7 +77,8 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev)
/* reserve the vidmem space of smi adaptor */ /* reserve the vidmem space of smi adaptor */
#if 0 #if 0
if ((ret = pci_request_region(pdev, 0, _moduleName_))) { ret = pci_request_region(pdev, 0, _moduleName_);
if (ret) {
pr_err("Can not request PCI regions.\n"); pr_err("Can not request PCI regions.\n");
goto exit; goto exit;
} }