drm: sti: add DVO output connector
Dan Carpenter
dan.carpenter at oracle.com
Wed Feb 4 01:08:11 PST 2015
Hello Benjamin Gaignard,
The patch f32c4c506f9b: "drm: sti: add DVO output connector" from Dec
30, 2014, leads to the following static checker warning:
drivers/gpu/drm/sti/sti_awg_utils.c:63 awg_generate_instr()
warn: no-op. '(arg << 24) >> 24'
drivers/gpu/drm/sti/sti_awg_utils.c
46 switch (opcode) {
47 case SKIP:
48 /* leave 'arg' + 1 pixel elapsing without changing
49 * output bus */
50 arg--; /* pixel adjustment */
51 arg_tmp--;
52
53 if (arg < 0) {
54 /* SKIP instruction not needed */
55 return 0;
56 }
57
58 if (arg == 0) {
59 /* SKIP 0 not permitted but we want to skip 1
60 * pixel. So we transform SKIP into SET
61 * instruction */
62 opcode = SET;
63 arg = (arg << 24) >> 24;
^^^^^^^^^^^^^^^^^^^^^^^^
64 arg &= (0x0ff);
^^^^^^^^^^^^^^^
Since "arg" is zero then the shift/mask operations are a no-op. I'm not
sure what was intented.
65 break;
66 }
67
68 mux = 0;
69 data_enable = 0;
70 arg = (arg << 22) >> 22;
71 arg &= (0x3ff);
72 break;
73 case REPEAT:
regards,
dan carpenter
More information about the dri-devel
mailing list