This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media_tree.git tree:

Subject: [media] dib8000: Fix some wrong alignments
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Sun Jan 16 13:02:52 2011 -0200

Something went wrong with the alignments for the if clause at line 2113.
Instead of using one tab for alignments, it used 3 tabs, plus one space
character.

WARNING: suspect code indent for conditional statements (8, 33)
+       if ((state->fe[0]->dtv_property_cache.delivery_system != SYS_ISDBT) ||
[...]
+                                int i = 80000;

WARNING: suspect code indent for conditional statements (33, 41)
+                                for (index_frontend = 0; (index_frontend < 
MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); 
index_frontend++) {
+                                        
dib8000_set_bandwidth(state->fe[index_frontend], 
fe->dtv_property_cache.bandwidth_hz / 1000);

WARNING: suspect code indent for conditional statements (33, 41)
+                                do {
+                                        msleep(20);

WARNING: suspect code indent for conditional statements (41, 49)
+                                        for (index_frontend = 0; 
(index_frontend < MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != 
NULL); index_frontend++) {
+                                                if (((tune_failed >> 
index_frontend) & 0x1) == 0) {

WARNING: suspect code indent for conditional statements (49, 57)
+                                                if (((tune_failed >> 
index_frontend) & 0x1) == 0) {
+                                                        found = 
dib8000_autosearch_irq(state->fe[index_frontend]);

WARNING: suspect code indent for conditional statements (41, 49)
+                                        if ((nbr_pending == 0) && 
(exit_condition == 0))
+                                                exit_condition = 1;

Cc: Patrick Boettcher <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/dvb/frontends/dib8000.c |   96 ++++++++++++++++----------------
 scripts/checkpatch.pl                 |    2 +-
 2 files changed, 49 insertions(+), 49 deletions(-)

---

http://git.linuxtv.org/media_tree.git?a=commitdiff;h=99cffcd18ec72aeed2ad598bdf54e3c5ae04b8d0

diff --git a/drivers/media/dvb/frontends/dib8000.c 
b/drivers/media/dvb/frontends/dib8000.c
index 3961fed..3e20aa8 100644
--- a/drivers/media/dvb/frontends/dib8000.c
+++ b/drivers/media/dvb/frontends/dib8000.c
@@ -2134,54 +2134,54 @@ static int dib8000_set_frontend(struct dvb_frontend 
*fe, struct dvb_frontend_par
                         
((state->fe[0]->dtv_property_cache.layer[1].segment_count == 0) ||
                          
((state->fe[0]->dtv_property_cache.isdbt_layer_enabled & (2 << 0)) == 0)) &&
                         
((state->fe[0]->dtv_property_cache.layer[2].segment_count == 0) || 
((state->fe[0]->dtv_property_cache.isdbt_layer_enabled & (3 << 0)) == 0)))) {
-                                int i = 80000;
-                                u8 found = 0;
-                                u8 tune_failed = 0;
-
-                                for (index_frontend = 0; (index_frontend < 
MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); 
index_frontend++) {
-                                        
dib8000_set_bandwidth(state->fe[index_frontend], 
fe->dtv_property_cache.bandwidth_hz / 1000);
-                                        
dib8000_autosearch_start(state->fe[index_frontend]);
-                                }
-
-                                do {
-                                        msleep(20);
-                                        nbr_pending = 0;
-                                        exit_condition = 0; /* 0: tune 
pending; 1: tune failed; 2:tune success */
-                                        for (index_frontend = 0; 
(index_frontend < MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != 
NULL); index_frontend++) {
-                                                if (((tune_failed >> 
index_frontend) & 0x1) == 0) {
-                                                        found = 
dib8000_autosearch_irq(state->fe[index_frontend]);
-                                                        switch (found) {
-                                                        case 0: /* tune 
pending */
-                                                                        
nbr_pending++;
-                                                                        break;
-                                                        case 2:
-                                                                        
dprintk("autosearch succeed on the frontend%i", index_frontend);
-                                                                        
exit_condition = 2;
-                                                                        
index_frontend_success = index_frontend;
-                                                                        break;
-                                                        default:
-                                                                        
dprintk("unhandled autosearch result");
-                                                        case 1:
-                                                                        
dprintk("autosearch failed for the frontend%i", index_frontend);
-                                                                        break;
-                                                        }
-                                                }
-                                        }
-
-                                        /* if all tune are done and no 
success, exit: tune failed */
-                                        if ((nbr_pending == 0) && 
(exit_condition == 0))
-                                                exit_condition = 1;
-                                } while ((exit_condition == 0) && i--);
-
-                                if (exit_condition == 1) { /* tune failed */
-                                        dprintk("tune failed");
-                                        return 0;
-                                }
-
-                                dprintk("tune success on frontend%i", 
index_frontend_success);
-
-                                dib8000_get_frontend(fe, fep);
-                        }
+               int i = 80000;
+               u8 found = 0;
+               u8 tune_failed = 0;
+
+               for (index_frontend = 0; (index_frontend < 
MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); 
index_frontend++) {
+                       dib8000_set_bandwidth(state->fe[index_frontend], 
fe->dtv_property_cache.bandwidth_hz / 1000);
+                       dib8000_autosearch_start(state->fe[index_frontend]);
+               }
+
+               do {
+                       msleep(20);
+                       nbr_pending = 0;
+                       exit_condition = 0; /* 0: tune pending; 1: tune failed; 
2:tune success */
+                       for (index_frontend = 0; (index_frontend < 
MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); 
index_frontend++) {
+                               if (((tune_failed >> index_frontend) & 0x1) == 
0) {
+                                       found = 
dib8000_autosearch_irq(state->fe[index_frontend]);
+                                       switch (found) {
+                                       case 0: /* tune pending */
+                                                nbr_pending++;
+                                                break;
+                                       case 2:
+                                                dprintk("autosearch succeed on 
the frontend%i", index_frontend);
+                                                exit_condition = 2;
+                                                index_frontend_success = 
index_frontend;
+                                                break;
+                                       default:
+                                                dprintk("unhandled autosearch 
result");
+                                       case 1:
+                                                dprintk("autosearch failed for 
the frontend%i", index_frontend);
+                                                break;
+                                       }
+                               }
+                       }
+
+                       /* if all tune are done and no success, exit: tune 
failed */
+                       if ((nbr_pending == 0) && (exit_condition == 0))
+                               exit_condition = 1;
+               } while ((exit_condition == 0) && i--);
+
+               if (exit_condition == 1) { /* tune failed */
+                       dprintk("tune failed");
+                       return 0;
+               }
+
+               dprintk("tune success on frontend%i", index_frontend_success);
+
+               dib8000_get_frontend(fe, fep);
+       }
 
        for (index_frontend = 0, ret = 0; (ret >= 0) && (index_frontend < 
MAX_NUMBER_OF_FRONTENDS) && (state->fe[index_frontend] != NULL); 
index_frontend++)
                ret = dib8000_tune(state->fe[index_frontend]);
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e3c7fc0..7c098fb 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1466,7 +1466,7 @@ sub process {
                    $line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) &&
                    $length > 80)
                {
-                       WARN("line over 80 characters\n" . $herecurr);
+#                      WARN("line over 80 characters\n" . $herecurr);
                }
 
 # check for spaces before a quoted newline

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to