- Notifications
You must be signed in to change notification settings - Fork5k
Commit8134fe4
committed
Remove some pointless code in block.h.
There's no visible point in casting the result of a comparison tobool, because it already is that, at least on C99 compilers.I see no point in these assertions that a pointer we're about todereference isn't null, either. If it is, the resulting SIGSEGVwill notify us of the problem just fine.Noted while reviewing Zhihong Yu's patch. This is basicallycosmetic, so no need for back-patch.Discussion:https://postgr.es/m/CALNJ-vT9r0DSsAOw9OXVJFxLENoVS_68kJ5x0p44atoYH+H4dg@mail.gmail.com1 parent0fbdfaf commit8134fe4
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
87 | 86 |
| |
88 | 87 |
| |
89 | 88 |
| |
| |||
94 | 93 |
| |
95 | 94 |
| |
96 | 95 |
| |
97 |
| - | |
98 |
| - | |
99 | 96 |
| |
100 | 97 |
| |
101 | 98 |
| |
| |||
113 | 110 |
| |
114 | 111 |
| |
115 | 112 |
| |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
| 113 | + | |
120 | 114 |
| |
121 | 115 |
|
0 commit comments
Comments
(0)