PVS V523: identical code in if/else
Use #if 0 to disable code that should be disabled. Change-Id: I797383eb8c68681459d8cd56d1b3addda960fa44 Reviewed-on: https://review.haiku-os.org/c/1664 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
cbc96724ab
commit
e66c5b32a8
@@ -462,33 +462,34 @@ status_t SET_DPMS_MODE(uint32 dpms_flags) {
|
|||||||
|
|
||||||
LOG(4,("SET_DPMS_MODE: 0x%08x\n", dpms_flags));
|
LOG(4,("SET_DPMS_MODE: 0x%08x\n", dpms_flags));
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (si->dm.flags & DUALHEAD_BITS) /*dualhead*/
|
if (si->dm.flags & DUALHEAD_BITS) /*dualhead*/
|
||||||
{
|
{
|
||||||
switch(dpms_flags)
|
switch(dpms_flags)
|
||||||
{
|
{
|
||||||
case B_DPMS_ON: /* H: on, V: on, display on */
|
case B_DPMS_ON: /* H: on, V: on, display on */
|
||||||
head1_dpms(true, true, true);
|
head1_dpms(true, true, true);
|
||||||
// if (si->ps.secondary_head) head2_dpms(true, true, true);
|
if (si->ps.secondary_head) head2_dpms(true, true, true);
|
||||||
break;
|
break;
|
||||||
case B_DPMS_STAND_BY:
|
case B_DPMS_STAND_BY:
|
||||||
head1_dpms(false, false, true);
|
head1_dpms(false, false, true);
|
||||||
// if (si->ps.secondary_head) head2_dpms(false, false, true);
|
if (si->ps.secondary_head) head2_dpms(false, false, true);
|
||||||
break;
|
break;
|
||||||
case B_DPMS_SUSPEND:
|
case B_DPMS_SUSPEND:
|
||||||
head1_dpms(false, true, false);
|
head1_dpms(false, true, false);
|
||||||
// if (si->ps.secondary_head) head2_dpms(false, true, false);
|
if (si->ps.secondary_head) head2_dpms(false, true, false);
|
||||||
break;
|
break;
|
||||||
case B_DPMS_OFF: /* H: off, V: off, display off */
|
case B_DPMS_OFF: /* H: off, V: off, display off */
|
||||||
head1_dpms(false, false, false);
|
head1_dpms(false, false, false);
|
||||||
// if (si->ps.secondary_head) head2_dpms(false, false, false);
|
if (si->ps.secondary_head) head2_dpms(false, false, false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG(8,("SET: Invalid DPMS settings (DH) 0x%08x\n", dpms_flags));
|
LOG(8,("SET: Invalid DPMS settings (DH) 0x%08x\n", dpms_flags));
|
||||||
interrupt_enable(true);
|
interrupt_enable(true);
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
}
|
} else /* singlehead */
|
||||||
else /* singlehead */
|
#endif
|
||||||
{
|
{
|
||||||
switch(dpms_flags)
|
switch(dpms_flags)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user